[meta-ti] Khem Raj : am33x-cm3: Add TOOLCHAIN_OPTIONS to redefined CC

Arago Project git git at arago-project.org
Mon Sep 22 09:49:30 PDT 2014


Module: meta-ti
Branch: master
Commit: 3735bc41089cc7ba32f5550ce18c3bb0d20f3a32
URL:    http://arago-project.org/git/meta-ti.git?a=commit;h=3735bc41089cc7ba32f5550ce18c3bb0d20f3a32

Author: Khem Raj <raj.khem at gmail.com>
Date:   Sun Sep 21 13:05:38 2014 +0000

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 <stdint.h>
|                           ^
| compilation terminated.
| make: *** [src/sys_exec/sys_init.o] Error 1

Signed-off-by: Khem Raj <raj.khem at gmail.com>
Signed-off-by: Denys Dmytriyenko <denys at ti.com>

---

 recipes-bsp/am33x-cm3/am33x-cm3_git.bb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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() {



More information about the meta-ti mailing list