From 3735bc41089cc7ba32f5550ce18c3bb0d20f3a32 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 21 Sep 2014 13:05:38 +0000 Subject: [PATCH] am33x-cm3: Add TOOLCHAIN_OPTIONS to redefined CC 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 | ^ | compilation terminated. | make: *** [src/sys_exec/sys_init.o] Error 1 Signed-off-by: Khem Raj Signed-off-by: Denys Dmytriyenko --- 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 e5728ab0..0b0a776d 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() {