summaryrefslogtreecommitdiff
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:14:04 +0000
commit7fc7e98801bd72b9662528f94b315749e6075666 (patch)
tree45b1c0e015d3eb51aa48e4c125b8739823c9f1df /meta/classes/toolchain-scripts.bbclass
parent35c2d04911b84cb21ef1a4a00dee399873bee8f3 (diff)
downloadopenembedded-core-7fc7e98801bd72b9662528f94b315749e6075666.tar.gz
openembedded-core-7fc7e98801bd72b9662528f94b315749e6075666.tar.bz2
openembedded-core-7fc7e98801bd72b9662528f94b315749e6075666.zip
Add kernel arch variable in SDK environment variable list for supporting build external kernel module using SDK
Signed-off-by: Jessica Zhang <jessica.zhang@intel.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.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 @@
-inherit siteinfo
+inherit siteinfo kernel-arch
# We want to be able to change the value of MULTIMACH_TARGET_SYS, because it
# doesn't always match our expectations... but we default to the stock value
@@ -46,6 +46,7 @@ toolchain_create_sdk_env_script () {
echo 'export OECORE_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script
echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >> $script
echo 'export PYTHONHOME=${SDKPATHNATIVE}${prefix_nativesdk}' >> $script
+ echo 'export ARCH=${ARCH}' >> $script
}
# This function creates an environment-setup-script in the TMPDIR which enables
@@ -90,6 +91,7 @@ toolchain_create_tree_env_script () {
echo 'export OECORE_ACLOCAL_OPTS="-I ${STAGING_DIR_NATIVE}/usr/share/aclocal"' >> $script
echo 'export OECORE_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script
echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >> $script
+ echo 'export ARCH=${ARCH}' >> $script
}
# This function creates an environment-setup-script for use by the ADT installer
@@ -134,6 +136,7 @@ toolchain_create_sdk_env_script_for_installer () {
echo 'export OECORE_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script
echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >> $script
echo 'export PYTHONHOME=${SDKPATHNATIVE}${prefix_nativesdk}' >> $script
+ echo 'export ARCH=${ARCH}' >> $script
}
#we get the cached site config in the runtime