summaryrefslogtreecommitdiff
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)
downloadopenembedded-core-f47ae202afd6ef9aa600fed4c1d096dfb7613286.tar.gz
openembedded-core-f47ae202afd6ef9aa600fed4c1d096dfb7613286.tar.bz2
openembedded-core-f47ae202afd6ef9aa600fed4c1d096dfb7613286.tar.xz
openembedded-core-f47ae202afd6ef9aa600fed4c1d096dfb7613286.zip
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 5c9acda6d..11a2f84c1 100644
--- a/meta/classes/toolchain-scripts.bbclass
+++ b/meta/classes/toolchain-scripts.bbclass
@@ -12,6 +12,8 @@ toolchain_create_sdk_env_script () {
echo 'export CONFIG_SITE=${SDKPATH}/site-config-${MULTIMACH_TARGET_SYS}' >> $script
echo 'export CC=${TARGET_PREFIX}gcc' >> $script
echo 'export CXX=${TARGET_PREFIX}g++' >> $script
+ echo 'export GDB=${TARGET_PREFIX}gdb' >> $script
+ echo 'export TARGET_PREFIX=${TARGET_PREFIX}' >> $script
echo 'export CONFIGURE_FLAGS="--target=${TARGET_SYS} --host=${TARGET_SYS} --build=${SDK_ARCH}-linux"' >> $script
if [ "${TARGET_OS}" = "darwin8" ]; then
echo 'export TARGET_CFLAGS="-I${SDKTARGETSYSROOT}${includedir}"' >> $script
@@ -42,6 +44,8 @@ toolchain_create_tree_env_script () {
echo 'export CC=${TARGET_PREFIX}gcc' >> $script
echo 'export CXX=${TARGET_PREFIX}g++' >> $script
+ echo 'export GDB=${TARGET_PREFIX}gdb' >> $script
+ echo 'export TARGET_PREFIX=${TARGET_PREFIX}' >> $script
echo 'export CONFIGURE_FLAGS="--target=${TARGET_SYS} --host=${TARGET_SYS} --build=${BUILD_SYS}"' >> $script
if [ "${TARGET_OS}" = "darwin8" ]; then
echo 'export TARGET_CFLAGS="-I${STAGING_DIR}${TARGET_SYS}${includedir}"' >> $script