Skip to contentSkip to conversation

Add kernel arch variable in SDK environment variable list

PATCH New Jessica Zhang 1 participant 2 messages Feb 25, 2013

lore
Share & tools
lore
#0 lore raw

cover Add kernel arch variable in SDK environment variable list

The following changes since commit 2cc4fe4a0874c42421b1bf3fa100160a9e60a9da:

upstream_tracking.inc: Coonectivity and multimedia packages updates (2013-02-25 05:58:20 -0800)

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib jzhang/kernel-arch-variable
http://git.yoctoproject.org/cgit.cgi//log/?h=master

Jessica Zhang (1):
Add kernel arch variable in SDK environment variable list for
supporting build external kernel module using SDK

 meta/classes/toolchain-scripts.bbclass |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Signature · 1 line
1.7.9.5
#1 lore raw

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

---
 meta/classes/toolchain-scripts.bbclass |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
meta/classes/toolchain-scripts.bbclass +4 -1
index d336397..050e799 100644
@@ -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
Signature · 1 line
1.7.9.5