public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH] u-boot: mkimage: Fix build of u-boot-mkimage
@ 2016-11-02 12:07 Marek Vasut
  2016-11-02 14:44 ` André Draszik
  2016-11-02 14:48 ` Burton, Ross
  0 siblings, 2 replies; 19+ messages in thread
From: Marek Vasut @ 2016-11-02 12:07 UTC (permalink / raw)
  To: openembedded-core; +Cc: Marek Vasut

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 and just use the one
from u-boot-common*.inc . Moreover, since U-Boot buildsystem
already strips the tools, add INSANE_SKIP = "already-stripped" .

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Ross Burton <ross.burton@intel.com>
---
 meta/recipes-bsp/u-boot/u-boot-mkimage_2016.09.01.bb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

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..76b303e 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,8 +3,6 @@ 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'
-
 do_compile () {
 	oe_runmake sandbox_defconfig
 	oe_runmake cross_tools NO_SDL=1
@@ -17,3 +15,4 @@ do_install () {
 }
 
 BBCLASSEXTEND = "native nativesdk"
+INSANE_SKIP_${PN} = "already-stripped"
-- 
2.9.3



^ permalink raw reply related	[flat|nested] 19+ messages in thread
* [PATCH] u-boot: mkimage: Fix build of u-boot-mkimage
@ 2016-11-07 18:20 Marek Vasut
  2016-11-07 20:15 ` Burton, Ross
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Marek Vasut @ 2016-11-07 18:20 UTC (permalink / raw)
  To: openembedded-core; +Cc: Marek Vasut

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" .

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Ross Burton <ross.burton@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



^ permalink raw reply related	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2016-11-14 14:48 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-02 12:07 [PATCH] u-boot: mkimage: Fix build of u-boot-mkimage Marek Vasut
2016-11-02 14:44 ` André Draszik
2016-11-02 14:48 ` Burton, Ross
2016-11-02 19:40   ` Marek Vasut
2016-11-02 23:06     ` Burton, Ross
2016-11-04 11:06       ` Stefan Müller-Klieser
  -- strict thread matches above, loose matches on Subject: below --
2016-11-07 18:20 Marek Vasut
2016-11-07 20:15 ` Burton, Ross
2016-11-07 20:21   ` Burton, Ross
2016-11-12 18:31     ` Marek Vasut
2016-11-14 14:45       ` Burton, Ross
2016-11-14 14:48         ` Marek Vasut
2016-11-07 20:43 ` Jussi Kukkonen
2016-11-08 14:49   ` Marek Vasut
2016-11-09  0:15 ` Burton, Ross
2016-11-09  0:43   ` Khem Raj
2016-11-09  0:45     ` Burton, Ross
2016-11-09  2:22       ` Gary Thomas
2016-11-12 18:31   ` Marek Vasut

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox