summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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