summaryrefslogtreecommitdiffstats
path: root/meta/classes/toolchain-scripts.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-09-16 15:12:29 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-09-16 15:16:01 +0100
commitf47ae202afd6ef9aa600fed4c1d096dfb7613286 (patch)
tree35b153f253e7cecde44db9ddf0d2e17b884b0bf3 /meta/classes/toolchain-scripts.bbclass
parentfe0f86e15ce89fef28865e75a614b06a3fc76bc9 (diff)
downloadpoky-f47ae202afd6ef9aa600fed4c1d096dfb7613286.tar.gz
toolchain-scripts: Export TARGET_PREFIX and GDB variables for SDK usage
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/classes/toolchain-scripts.bbclass')
-rw-r--r--meta/classes/toolchain-scripts.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-scripts.bbclass
index 5c9acda6de..11a2f84c18 100644
--- a/meta/classes/toolchain-scripts.bbclass
+++ b/meta/classes/toolchain-scripts.bbclass
@@ -12,6 +12,8 @@ toolchain_create_sdk_env_script () {
12 echo 'export CONFIG_SITE=${SDKPATH}/site-config-${MULTIMACH_TARGET_SYS}' >> $script 12 echo 'export CONFIG_SITE=${SDKPATH}/site-config-${MULTIMACH_TARGET_SYS}' >> $script
13 echo 'export CC=${TARGET_PREFIX}gcc' >> $script 13 echo 'export CC=${TARGET_PREFIX}gcc' >> $script
14 echo 'export CXX=${TARGET_PREFIX}g++' >> $script 14 echo 'export CXX=${TARGET_PREFIX}g++' >> $script
15 echo 'export GDB=${TARGET_PREFIX}gdb' >> $script
16 echo 'export TARGET_PREFIX=${TARGET_PREFIX}' >> $script
15 echo 'export CONFIGURE_FLAGS="--target=${TARGET_SYS} --host=${TARGET_SYS} --build=${SDK_ARCH}-linux"' >> $script 17 echo 'export CONFIGURE_FLAGS="--target=${TARGET_SYS} --host=${TARGET_SYS} --build=${SDK_ARCH}-linux"' >> $script
16 if [ "${TARGET_OS}" = "darwin8" ]; then 18 if [ "${TARGET_OS}" = "darwin8" ]; then
17 echo 'export TARGET_CFLAGS="-I${SDKTARGETSYSROOT}${includedir}"' >> $script 19 echo 'export TARGET_CFLAGS="-I${SDKTARGETSYSROOT}${includedir}"' >> $script
@@ -42,6 +44,8 @@ toolchain_create_tree_env_script () {
42 44
43 echo 'export CC=${TARGET_PREFIX}gcc' >> $script 45 echo 'export CC=${TARGET_PREFIX}gcc' >> $script
44 echo 'export CXX=${TARGET_PREFIX}g++' >> $script 46 echo 'export CXX=${TARGET_PREFIX}g++' >> $script
47 echo 'export GDB=${TARGET_PREFIX}gdb' >> $script
48 echo 'export TARGET_PREFIX=${TARGET_PREFIX}' >> $script
45 echo 'export CONFIGURE_FLAGS="--target=${TARGET_SYS} --host=${TARGET_SYS} --build=${BUILD_SYS}"' >> $script 49 echo 'export CONFIGURE_FLAGS="--target=${TARGET_SYS} --host=${TARGET_SYS} --build=${BUILD_SYS}"' >> $script
46 if [ "${TARGET_OS}" = "darwin8" ]; then 50 if [ "${TARGET_OS}" = "darwin8" ]; then
47 echo 'export TARGET_CFLAGS="-I${STAGING_DIR}${TARGET_SYS}${includedir}"' >> $script 51 echo 'export TARGET_CFLAGS="-I${STAGING_DIR}${TARGET_SYS}${includedir}"' >> $script