Skip to contentSkip to conversation

u-boot-fw-utils: Fix cross and target builds

PATCH Superseded Otavio Salvador 1 participant 1 message Sep 19, 2017

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 u-boot-fw-utils: Fix cross and target builds

- The environment tools target has change to envtools;
- The HOSTCC variable must be used to set CC for cross;
- The ARCH variable must be set for cross;

---

Changes in v2:
- pass V=1 for cross - sorry

 meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.09.bb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.09.bb +3 -3
index c2e8f0fb84..1f92159bef 100644
@@ -5,13 +5,13 @@ DEPENDS = "mtd-utils"
 
 INSANE_SKIP_${PN} = "already-stripped"
 EXTRA_OEMAKE_class-target = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${CC} ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" V=1'
-EXTRA_OEMAKE_class-cross = 'ARCH=${TARGET_ARCH} CC="${CC} ${CFLAGS} ${LDFLAGS}" V=1'
+EXTRA_OEMAKE_class-cross = 'ARCH=${ARCH} HOSTCC="${CC} ${CFLAGS} ${LDFLAGS}" V=1'
 
-inherit uboot-config
+inherit kernel-arch uboot-config
 
 do_compile () {
 	oe_runmake ${UBOOT_MACHINE}
-	oe_runmake env
+	oe_runmake envtools
 }
 
 do_install () {
Signature · 1 line
2.14.1