Skip to contentSkip to conversation

u-boot-fw-utils: reuse the same override HOSTCC patch as u-boot-mkimage

PATCH New Denys Dmytriyenko 1 participant 1 message Mar 14, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 u-boot-fw-utils: reuse the same override HOSTCC patch as u-boot-mkimage

From: Denys Dmytriyenko <[email protected]>

---
 meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.01.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta/recipes-bsp/u-boot/u-boot-fw-utils_2017.01.bb +3 -1
index f56862c..2631499 100644
@@ -1,10 +1,12 @@
 require u-boot-common_${PV}.inc
 
+SRC_URI += "file://default-gcc.patch"
+
 SUMMARY = "U-Boot bootloader fw_printenv/setenv utilities"
 DEPENDS = "mtd-utils"
 
 INSANE_SKIP_${PN} = "already-stripped"
-EXTRA_OEMAKE_class-target = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${CC} ${CFLAGS} ${LDFLAGS}" V=1'
+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'
 
 inherit uboot-config
Signature · 1 line
2.7.4