summaryrefslogtreecommitdiff
path: root/meta/classes/toolchain-scripts.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-09-16 15:34:36 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-09-16 15:35:28 +0100
commitd1ff9aa4f352224bd82b707d505522f4976d8ed8 (patch)
treefc031a9125b9864dbcc1cce6dd14c7159d94c57d /meta/classes/toolchain-scripts.bbclass
parent5b02bbcc3266def7cdf392a5f645dad501e9afbd (diff)
downloadopenembedded-core-d1ff9aa4f352224bd82b707d505522f4976d8ed8.tar.gz
openembedded-core-d1ff9aa4f352224bd82b707d505522f4976d8ed8.tar.bz2
openembedded-core-d1ff9aa4f352224bd82b707d505522f4976d8ed8.zip
toolchain-scripts: Add POKY_TARGET_SYSROOT variable 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.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-scripts.bbclass
index 11a2f84c18..75e65f2db0 100644
--- a/meta/classes/toolchain-scripts.bbclass
+++ b/meta/classes/toolchain-scripts.bbclass
@@ -27,6 +27,7 @@ toolchain_create_sdk_env_script () {
echo "alias opkg='LD_LIBRARY_PATH=${SDKPATHNATIVE}${libdir_nativesdk} ${SDKPATHNATIVE}${bindir_nativesdk}/opkg-cl -f ${SDKPATHNATIVE}/${sysconfdir}/opkg-sdk.conf -o ${SDKPATHNATIVE}'" >> $script
echo "alias opkg-target='LD_LIBRARY_PATH=${SDKPATHNATIVE}${libdir_nativesdk} ${SDKPATHNATIVE}${bindir_nativesdk}/opkg-cl -f ${SDKTARGETSYSROOT}${sysconfdir}/opkg.conf -o ${SDKTARGETSYSROOT}'" >> $script
echo 'export POKY_NATIVE_SYSROOT="${SDKPATHNATIVE}"' >> $script
+ echo 'export POKY_TARGET_SYSROOT="${SDKTARGETSYSROOT}"' >> $script
echo 'export POKY_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script
}
@@ -57,4 +58,5 @@ toolchain_create_tree_env_script () {
echo 'export CFLAGS="${TARGET_CC_ARCH}"' >> $script
echo 'export CXXFLAGS="${TARGET_CC_ARCH}"' >> $script
echo 'export POKY_NATIVE_SYSROOT="${STAGING_DIR_NATIVE}"' >> $script
+ echo 'export POKY_TARGET_SYSROOT="${STAGING_DIR_TARGET}"' >> $script
}