<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 7 November 2016 at 20:20, Marek Vasut <span dir="ltr">&lt;<a href="mailto:marex@denx.de" target="_blank">marex@denx.de</a>&gt;</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&#39;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 = &quot;already-stripped&quot; .<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 &lt;<a href="mailto:marex@denx.de">marex@denx.de</a>&gt;<br>
Cc: Ross Burton &lt;<a href="mailto:ross.burton@intel.com">ross.burton@intel.com</a>&gt;<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 = &quot;U-Boot bootloader image creation tool&quot;<br>
 DEPENDS = &quot;openssl&quot;<br>
<br>
-EXTRA_OEMAKE = &#39;CROSS_COMPILE=&quot;${TARGET_<wbr>PREFIX}&quot; CC=&quot;${CC} ${CFLAGS} ${LDFLAGS}&quot; STRIP=true V=1&#39;<br>
+EXTRA_OEMAKE = &#39;HOSTCC=&quot;${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}&quot;&#39;<br>
+EXTRA_OEMAKE_append_class-<wbr>target = &#39;CROSS_COMPILE=&quot;${TARGET_<wbr>PREFIX}&quot; CC=&quot;${CC} ${CFLAGS} ${LDFLAGS}&quot; STRIP=true V=1&#39;<br>
+EXTRA_OEMAKE_append_class-<wbr>native = &#39;CC=&quot;${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}&quot; STRIP=true V=1&#39;<br>
+EXTRA_OEMAKE_append_class-<wbr>nativesdk = &#39;CC=&quot;${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}&quot; STRIP=true V=1&#39;<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 &quot;s/CONFIG_CMD_LICENSE.*/# CONFIG_CMD_LICENSE is not set/&quot; .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>