Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] u-boot.inc: properly specify CC for EXTRA_OEMAKE
@ 2015-11-04 16:06 Radek Dostal
  2015-11-05 13:14 ` Otavio Salvador
  0 siblings, 1 reply; 13+ messages in thread
From: Radek Dostal @ 2015-11-04 16:06 UTC (permalink / raw)
  To: openembedded-core; +Cc: Radek Dostal

${TOOLCHAIN_OPTIONS} does not contain some important flags such as
"-march=armv7-a -mfloat-abi=hard -mfpu=neon -mtune=cortex-a8". It only
specifies sysroot as mentioned in commit 923eb657 "u-boot.inc: update
linker arguments to pass --sysroot arg"

Fixes bug: u-boot 2014.04 build breaks with error:
"fatal error: gnu/stubs-soft.h: No such file or directory"
when building with hard float compiler as compiler does not receive
flag "-mfloat-abi=hard"

Before this patch only gcc compiler could be used due to CC explicitly
being set to gcc.

Signed-off-by: Radek Dostal <radek.dostal@streamunlimited.com>
Acked-by: Carlos Rafael Giani <dv@pseudoterminal.org>
---
 meta/recipes-bsp/u-boot/u-boot.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-bsp/u-boot/u-boot.inc b/meta/recipes-bsp/u-boot/u-boot.inc
index e66ffd1..be22e0c 100644
--- a/meta/recipes-bsp/u-boot/u-boot.inc
+++ b/meta/recipes-bsp/u-boot/u-boot.inc
@@ -14,7 +14,7 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
 
 inherit uboot-config deploy
 
-EXTRA_OEMAKE = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS}" V=1'
+EXTRA_OEMAKE = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${CC}" V=1'
 EXTRA_OEMAKE += 'HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}"'
 
 PACKAGECONFIG ??= "openssl"
-- 
1.9.1



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

end of thread, other threads:[~2015-11-11 16:21 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-04 16:06 [PATCH] u-boot.inc: properly specify CC for EXTRA_OEMAKE Radek Dostal
2015-11-05 13:14 ` Otavio Salvador
2015-11-05 13:16   ` Carlos Rafael Giani
2015-11-05 14:22     ` Otavio Salvador
2015-11-05 14:23       ` Carlos Rafael Giani
2015-11-10 13:09         ` Tom Rini
2015-11-11  3:59           ` Khem Raj
2015-11-11 12:37             ` Tom Rini
2015-11-11 16:21               ` Khem Raj
2015-11-05 15:19   ` Radek Dostál
2015-11-05 15:32     ` Burton, Ross
2015-11-05 15:47     ` Otavio Salvador
2015-11-05 16:02       ` Radek Dostál

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