Patchwork [1/1] Add kernel arch variable in SDK environment variable list for supporting build external kernel module using SDK

login
register
mail settings
Submitter Jessica Zhang
Date Feb. 25, 2013, 10:20 p.m.
Message ID <0b87a2c84550fae81c5a179dd96ad099469a49f3.1361830589.git.jessica.zhang@intel.com>
Download mbox | patch
Permalink /patch/45059/
State Accepted
Commit 7fc7e98801bd72b9662528f94b315749e6075666
Headers show

Comments

Jessica Zhang - Feb. 25, 2013, 10:20 p.m.
Signed-off-by: Jessica Zhang <jessica.zhang@intel.com>
---
 meta/classes/toolchain-scripts.bbclass |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Patch

diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-scripts.bbclass
index d336397..050e799 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