summaryrefslogtreecommitdiffstats
path: root/meta/classes/toolchain-scripts.bbclass
diff options
context:
space:
mode:
authorJessica Zhang <jessica.zhang@intel.com>2013-02-25 14:20:52 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-28 23:15:46 +0000
commit4926276d51d92c831381a2536f77fef8c58274d1 (patch)
tree58e0c8b1a85aea19472409c90f25c46e1bd90d56 /meta/classes/toolchain-scripts.bbclass
parentb7c37e49f84f93502a46bf31689b52414500325e (diff)
downloadpoky-4926276d51d92c831381a2536f77fef8c58274d1.tar.gz
Add kernel arch variable in SDK environment variable list for supporting build external kernel module using SDK
(From OE-Core rev: 7fc7e98801bd72b9662528f94b315749e6075666) Signed-off-by: Jessica Zhang <jessica.zhang@intel.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.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-scripts.bbclass
index d336397f9e..050e799d4f 100644
--- a/meta/classes/toolchain-scripts.bbclass
+++ b/meta/classes/toolchain-scripts.bbclass
@@ -1,4 +1,4 @@
1inherit siteinfo 1inherit siteinfo kernel-arch
2 2
3# We want to be able to change the value of MULTIMACH_TARGET_SYS, because it 3# We want to be able to change the value of MULTIMACH_TARGET_SYS, because it
4# doesn't always match our expectations... but we default to the stock value 4# doesn't always match our expectations... but we default to the stock value
@@ -46,6 +46,7 @@ toolchain_create_sdk_env_script () {
46 echo 'export OECORE_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script 46 echo 'export OECORE_DISTRO_VERSION="${DISTRO_VERSION}"' >> $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} 50}
50 51
51# This function creates an environment-setup-script in the TMPDIR which enables 52# This function creates an environment-setup-script in the TMPDIR which enables
@@ -90,6 +91,7 @@ toolchain_create_tree_env_script () {
90 echo 'export OECORE_ACLOCAL_OPTS="-I ${STAGING_DIR_NATIVE}/usr/share/aclocal"' >> $script 91 echo 'export OECORE_ACLOCAL_OPTS="-I ${STAGING_DIR_NATIVE}/usr/share/aclocal"' >> $script
91 echo 'export OECORE_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script 92 echo 'export OECORE_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script
92 echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >> $script 93 echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >> $script
94 echo 'export ARCH=${ARCH}' >> $script
93} 95}
94 96
95# This function creates an environment-setup-script for use by the ADT installer 97# This function creates an environment-setup-script for use by the ADT installer
@@ -134,6 +136,7 @@ toolchain_create_sdk_env_script_for_installer () {
134 echo 'export OECORE_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script 136 echo 'export OECORE_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script
135 echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >> $script 137 echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >> $script
136 echo 'export PYTHONHOME=${SDKPATHNATIVE}${prefix_nativesdk}' >> $script 138 echo 'export PYTHONHOME=${SDKPATHNATIVE}${prefix_nativesdk}' >> $script
139 echo 'export ARCH=${ARCH}' >> $script
137} 140}
138 141
139#we get the cached site config in the runtime 142#we get the cached site config in the runtime