[meta-ti] [PATCH] am33x-cm3: Add TOOLCHAIN_OPTIONS to redefined CC
Khem Raj
raj.khem at gmail.com
Sun Sep 21 00:05:38 PDT 2014
This error will show up when using sstate which was generated
using a different buiid time sysroot. Since we override CC we
still need to honor --sysroot which is specified via TOOLCHAIN_OPTIONS
Fixes
| DEBUG: Executing shell function do_compile
| CC src/sys_exec/sys_init.o
| In file included from src/sys_exec/rsc_table.h:13:0,
| from src/sys_exec/sys_init.c:19:
|
/home/ubuntu/work/angstrom/build/tmp-angstrom_next-glibc/sysroots/x86_64-linux/usr/lib/arm-angstrom-linux-gnueabi/gcc/arm-angstrom-linux-gnueabi/4.9.2/include/stdint.h:9:26:
fatal error: stdint.h: No such file or directory
| # include_next <stdint.h>
| ^
| compilation terminated.
| make: *** [src/sys_exec/sys_init.o] Error 1
Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
recipes-bsp/am33x-cm3/am33x-cm3_git.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/recipes-bsp/am33x-cm3/am33x-cm3_git.bb b/recipes-bsp/am33x-cm3/am33x-cm3_git.bb
index e5728ab..0b0a776 100644
--- a/recipes-bsp/am33x-cm3/am33x-cm3_git.bb
+++ b/recipes-bsp/am33x-cm3/am33x-cm3_git.bb
@@ -17,7 +17,7 @@ S = "${WORKDIR}/git"
FLOATABI = "${@base_contains("TUNE_FEATURES", "vfp", base_contains("TUNE_FEATURES", "callconvention-hard", " -mfloat-abi=hard", " -mfloat-abi=softfp", d), "" ,d)}"
do_compile() {
- make CROSS_COMPILE="${TARGET_PREFIX}" CC="${TARGET_PREFIX}gcc ${FLOATABI}"
+ make CROSS_COMPILE="${TARGET_PREFIX}" CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS} ${FLOATABI}"
}
do_install() {
--
2.1.0
More information about the meta-ti
mailing list