]> code.ossystems Code Review - openembedded-core.git/commitdiff
syslinux: Override hardcoded toolnames in Makefile
authorKhem Raj <raj.khem@gmail.com>
Tue, 6 Aug 2019 06:45:46 +0000 (23:45 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 7 Aug 2019 15:08:08 +0000 (16:08 +0100)
makefile assumes native toolnames e.g. ar, as, nm etc.
which causes build fails on non-x86 build hosts

objcopy: Unable to recognise the format of the input file `libcom32.elf'

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/syslinux/syslinux_6.04-pre2.bb

index 67e5d57d48e700933fc2285569a2d4609a18b2c0..e9dbefb93047c42200ce8d22a0c497c4559e582c 100644 (file)
@@ -59,11 +59,26 @@ do_compile() {
 
        # Rebuild only the installer; keep precompiled bootloaders
        # as per author's request (doc/distrib.txt)
-       oe_runmake CC="${CC} ${CFLAGS}" LD="${LD}" LDFLAGS="${LDFLAGS}" firmware="bios" installer
+       oe_runmake CC="${CC} ${CFLAGS}" \
+                   LD="${LD}" LDFLAGS="${LDFLAGS}" \
+                   OBJDUMP="${OBJDUMP}" \
+                   OBJCOPY="${OBJCOPY}" \
+                   AR="${AR}" \
+                   STRIP="${STRIP}" \
+                   NM="${NM}" \
+                   RANLIB="${RANLIB}" \
+                   firmware="bios" installer
 }
 
 do_install() {
-       oe_runmake CC="${CC} ${CFLAGS}" LD="${LD}" firmware="bios" install INSTALLROOT="${D}"
+       oe_runmake CC="${CC} ${CFLAGS}" LD="${LD}" \
+                   OBJDUMP="${OBJDUMP}" \
+                   OBJCOPY="${OBJCOPY}" \
+                   AR="${AR}" \
+                   STRIP="${STRIP}" \
+                   NM="${NM}" \
+                   RANLIB="${RANLIB}" \
+                   firmware="bios" install INSTALLROOT="${D}"
 
        install -d ${D}${datadir}/syslinux/
        install -m 644 ${S}/bios/core/ldlinux.sys ${D}${datadir}/syslinux/