summaryrefslogtreecommitdiffstats
path: root/meta/classes
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
parent5b02bbcc3266def7cdf392a5f645dad501e9afbd (diff)
downloadpoky-d1ff9aa4f352224bd82b707d505522f4976d8ed8.tar.gz
toolchain-scripts: Add POKY_TARGET_SYSROOT variable for SDK usage
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/classes')
-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 () {
27 echo "alias opkg='LD_LIBRARY_PATH=${SDKPATHNATIVE}${libdir_nativesdk} ${SDKPATHNATIVE}${bindir_nativesdk}/opkg-cl -f ${SDKPATHNATIVE}/${sysconfdir}/opkg-sdk.conf -o ${SDKPATHNATIVE}'" >> $script 27 echo "alias opkg='LD_LIBRARY_PATH=${SDKPATHNATIVE}${libdir_nativesdk} ${SDKPATHNATIVE}${bindir_nativesdk}/opkg-cl -f ${SDKPATHNATIVE}/${sysconfdir}/opkg-sdk.conf -o ${SDKPATHNATIVE}'" >> $script
28 echo "alias opkg-target='LD_LIBRARY_PATH=${SDKPATHNATIVE}${libdir_nativesdk} ${SDKPATHNATIVE}${bindir_nativesdk}/opkg-cl -f ${SDKTARGETSYSROOT}${sysconfdir}/opkg.conf -o ${SDKTARGETSYSROOT}'" >> $script 28 echo "alias opkg-target='LD_LIBRARY_PATH=${SDKPATHNATIVE}${libdir_nativesdk} ${SDKPATHNATIVE}${bindir_nativesdk}/opkg-cl -f ${SDKTARGETSYSROOT}${sysconfdir}/opkg.conf -o ${SDKTARGETSYSROOT}'" >> $script
29 echo 'export POKY_NATIVE_SYSROOT="${SDKPATHNATIVE}"' >> $script 29 echo 'export POKY_NATIVE_SYSROOT="${SDKPATHNATIVE}"' >> $script
30 echo 'export POKY_TARGET_SYSROOT="${SDKTARGETSYSROOT}"' >> $script
30 echo 'export POKY_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script 31 echo 'export POKY_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script
31} 32}
32 33
@@ -57,4 +58,5 @@ toolchain_create_tree_env_script () {
57 echo 'export CFLAGS="${TARGET_CC_ARCH}"' >> $script 58 echo 'export CFLAGS="${TARGET_CC_ARCH}"' >> $script
58 echo 'export CXXFLAGS="${TARGET_CC_ARCH}"' >> $script 59 echo 'export CXXFLAGS="${TARGET_CC_ARCH}"' >> $script
59 echo 'export POKY_NATIVE_SYSROOT="${STAGING_DIR_NATIVE}"' >> $script 60 echo 'export POKY_NATIVE_SYSROOT="${STAGING_DIR_NATIVE}"' >> $script
61 echo 'export POKY_TARGET_SYSROOT="${STAGING_DIR_TARGET}"' >> $script
60} 62}