On 7 November 2016 at 20:20, Marek Vasut <ma...@denx.de> wrote: > The build failed on qemux86-64 because it couldn't execute > tools/bin2header on a host due to it being compiled with target > toolchain. Drop the incorrect EXTRA_OEMAKE, U-Boot Kbuild/Kconfig > respects the flags from OE. Moreover, since U-Boot buildsystem > already strips the tools, add INSANE_SKIP = "already-stripped" . >
The INSANE_SKIP mentioned here is no longer included in the patch. Signed-off-by: Marek Vasut <ma...@denx.de> > Cc: Ross Burton <ross.bur...@intel.com> > --- > meta/recipes-bsp/u-boot/u-boot-mkimage_2016.09.01.bb | 11 ++++++++++- > 1 file changed, 10 insertions(+), 1 deletion(-) > > diff --git a/meta/recipes-bsp/u-boot/u-boot-mkimage_2016.09.01.bb > b/meta/recipes-bsp/u-boot/u-boot-mkimage_2016.09.01.bb > index 5025961..8adc1e6 100644 > --- a/meta/recipes-bsp/u-boot/u-boot-mkimage_2016.09.01.bb > +++ b/meta/recipes-bsp/u-boot/u-boot-mkimage_2016.09.01.bb > @@ -3,10 +3,19 @@ require u-boot-common_${PV}.inc > SUMMARY = "U-Boot bootloader image creation tool" > DEPENDS = "openssl" > > -EXTRA_OEMAKE = 'CROSS_COMPILE="${TARGET_PREFIX}" CC="${CC} ${CFLAGS} > ${LDFLAGS}" STRIP=true V=1' > +EXTRA_OEMAKE = 'HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}"' > +EXTRA_OEMAKE_append_class-target = 'CROSS_COMPILE="${TARGET_PREFIX}" > CC="${CC} ${CFLAGS} ${LDFLAGS}" STRIP=true V=1' > +EXTRA_OEMAKE_append_class-native = 'CC="${BUILD_CC} ${BUILD_CFLAGS} > ${BUILD_LDFLAGS}" STRIP=true V=1' > +EXTRA_OEMAKE_append_class-nativesdk = 'CC="${BUILD_CC} ${BUILD_CFLAGS} > ${BUILD_LDFLAGS}" STRIP=true V=1' > > do_compile () { > oe_runmake sandbox_defconfig > + > + # Disable CONFIG_CMD_LICENSE, license.h is not used by tools and > + # generating it requires bin2header tool, which for target build > + # is built with target tools and thus cannot be executed on host. > + sed -i "s/CONFIG_CMD_LICENSE.*/# CONFIG_CMD_LICENSE is not set/" > .config > + > oe_runmake cross_tools NO_SDL=1 > } > > -- > 2.9.3 > > -- > _______________________________________________ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-core >
-- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core