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