summaryrefslogtreecommitdiff
path: root/meta/classes/toolchain-scripts.bbclass
diff options
context:
space:
mode:
authorZongchun Yu <b40527@freescale.com>2013-05-14 01:43:14 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-16 00:09:41 +0300
commitb66ec45e5dd9418a6568c04ef30854531a4b66f3 (patch)
treeeaafa8ff8464eabf4bac6e95aac39942c5a5d66c /meta/classes/toolchain-scripts.bbclass
parent8f1ecefc0c3d86ee6c467a9cc7119be237f74083 (diff)
downloadopenembedded-core-b66ec45e5dd9418a6568c04ef30854531a4b66f3.tar.gz
openembedded-core-b66ec45e5dd9418a6568c04ef30854531a4b66f3.tar.bz2
openembedded-core-b66ec45e5dd9418a6568c04ef30854531a4b66f3.zip
toolchain-scripts.bbclass:Add CROSS_COMPILE variable to environment-setup file
when compiling the linux kernel manually. users need to set CROSS_COMPILE separately. adding the CROSS_COMPILE variable will be nice for using. Signed-off-by: Zongchun Yu <b40527@freescale.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/classes/toolchain-scripts.bbclass')
-rw-r--r--meta/classes/toolchain-scripts.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-scripts.bbclass
index 050e799d4f..be5623bafe 100644
--- a/meta/classes/toolchain-scripts.bbclass
+++ b/meta/classes/toolchain-scripts.bbclass
@@ -47,6 +47,7 @@ toolchain_create_sdk_env_script () {
echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >> $script
echo 'export PYTHONHOME=${SDKPATHNATIVE}${prefix_nativesdk}' >> $script
echo 'export ARCH=${ARCH}' >> $script
+ echo 'export CROSS_COMPILE=${TARGET_PREFIX}' >> $script
}
# This function creates an environment-setup-script in the TMPDIR which enables
@@ -92,6 +93,7 @@ toolchain_create_tree_env_script () {
echo 'export OECORE_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script
echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >> $script
echo 'export ARCH=${ARCH}' >> $script
+ echo 'export CROSS_COMPILE=${TARGET_PREFIX}' >> $script
}
# This function creates an environment-setup-script for use by the ADT installer
@@ -137,6 +139,7 @@ toolchain_create_sdk_env_script_for_installer () {
echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >> $script
echo 'export PYTHONHOME=${SDKPATHNATIVE}${prefix_nativesdk}' >> $script
echo 'export ARCH=${ARCH}' >> $script
+ echo 'export CROSS_COMPILE=${TARGET_PREFIX}' >> $script
}
#we get the cached site config in the runtime