summaryrefslogtreecommitdiffstats
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:49 +0300
commit360bfe943af279691b7e2c777af6eca9d0fa86e5 (patch)
treef65f87bd281818d2e13a2afe1e6622c88a921922 /meta/classes/toolchain-scripts.bbclass
parent9fa1590474a25614a4e4ff52fb678832162d32c2 (diff)
downloadpoky-360bfe943af279691b7e2c777af6eca9d0fa86e5.tar.gz
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. (From OE-Core rev: b66ec45e5dd9418a6568c04ef30854531a4b66f3) Signed-off-by: Zongchun Yu <b40527@freescale.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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 () {
47 echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >> $script 47 echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >> $script
48 echo 'export PYTHONHOME=${SDKPATHNATIVE}${prefix_nativesdk}' >> $script 48 echo 'export PYTHONHOME=${SDKPATHNATIVE}${prefix_nativesdk}' >> $script
49 echo 'export ARCH=${ARCH}' >> $script 49 echo 'export ARCH=${ARCH}' >> $script
50 echo 'export CROSS_COMPILE=${TARGET_PREFIX}' >> $script
50} 51}
51 52
52# This function creates an environment-setup-script in the TMPDIR which enables 53# This function creates an environment-setup-script in the TMPDIR which enables
@@ -92,6 +93,7 @@ toolchain_create_tree_env_script () {
92 echo 'export OECORE_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script 93 echo 'export OECORE_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script
93 echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >> $script 94 echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >> $script
94 echo 'export ARCH=${ARCH}' >> $script 95 echo 'export ARCH=${ARCH}' >> $script
96 echo 'export CROSS_COMPILE=${TARGET_PREFIX}' >> $script
95} 97}
96 98
97# This function creates an environment-setup-script for use by the ADT installer 99# This function creates an environment-setup-script for use by the ADT installer
@@ -137,6 +139,7 @@ toolchain_create_sdk_env_script_for_installer () {
137 echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >> $script 139 echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >> $script
138 echo 'export PYTHONHOME=${SDKPATHNATIVE}${prefix_nativesdk}' >> $script 140 echo 'export PYTHONHOME=${SDKPATHNATIVE}${prefix_nativesdk}' >> $script
139 echo 'export ARCH=${ARCH}' >> $script 141 echo 'export ARCH=${ARCH}' >> $script
142 echo 'export CROSS_COMPILE=${TARGET_PREFIX}' >> $script
140} 143}
141 144
142#we get the cached site config in the runtime 145#we get the cached site config in the runtime