summaryrefslogtreecommitdiffstats
path: root/meta/classes/toolchain-scripts.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/toolchain-scripts.bbclass')
-rw-r--r--meta/classes/toolchain-scripts.bbclass16
1 files changed, 10 insertions, 6 deletions
diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-scripts.bbclass
index 2099c4def8..bedcd612fe 100644
--- a/meta/classes/toolchain-scripts.bbclass
+++ b/meta/classes/toolchain-scripts.bbclass
@@ -1,15 +1,19 @@
1inherit siteinfo 1inherit siteinfo
2 2
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
5REAL_MULTIMACH_TARGET_SYS ?= "${MULTIMACH_TARGET_SYS}"
6
3# This function creates an environment-setup-script for use in a deployable SDK 7# This function creates an environment-setup-script for use in a deployable SDK
4toolchain_create_sdk_env_script () { 8toolchain_create_sdk_env_script () {
5 # Create environment setup script 9 # Create environment setup script
6 script=${SDK_OUTPUT}/${SDKPATH}/environment-setup-${MULTIMACH_TARGET_SYS} 10 script=${1:-${SDK_OUTPUT}/${SDKPATH}/environment-setup-${REAL_MULTIMACH_TARGET_SYS}}
7 rm -f $script 11 rm -f $script
8 touch $script 12 touch $script
9 echo 'export PATH=${SDKPATHNATIVE}${bindir_nativesdk}:${SDKPATHNATIVE}${bindir_nativesdk}/${MULTIMACH_TARGET_SYS}:$PATH' >> $script 13 echo 'export PATH=${SDKPATHNATIVE}${bindir_nativesdk}:${SDKPATHNATIVE}${bindir_nativesdk}/${REAL_MULTIMACH_TARGET_SYS}:$PATH' >> $script
10 echo 'export PKG_CONFIG_SYSROOT_DIR=${SDKTARGETSYSROOT}' >> $script 14 echo 'export PKG_CONFIG_SYSROOT_DIR=${SDKTARGETSYSROOT}' >> $script
11 echo 'export PKG_CONFIG_PATH=${SDKTARGETSYSROOT}${libdir}/pkgconfig' >> $script 15 echo 'export PKG_CONFIG_PATH=${SDKTARGETSYSROOT}${libdir}/pkgconfig' >> $script
12 echo 'export CONFIG_SITE=${SDKPATH}/site-config-${MULTIMACH_TARGET_SYS}' >> $script 16 echo 'export CONFIG_SITE=${SDKPATH}/site-config-${REAL_MULTIMACH_TARGET_SYS}' >> $script
13 echo 'export CC=${TARGET_PREFIX}gcc' >> $script 17 echo 'export CC=${TARGET_PREFIX}gcc' >> $script
14 echo 'export CXX=${TARGET_PREFIX}g++' >> $script 18 echo 'export CXX=${TARGET_PREFIX}g++' >> $script
15 echo 'export GDB=${TARGET_PREFIX}gdb' >> $script 19 echo 'export GDB=${TARGET_PREFIX}gdb' >> $script
@@ -36,7 +40,7 @@ toolchain_create_sdk_env_script () {
36# This function creates an environment-setup-script in the TMPDIR which enables 40# This function creates an environment-setup-script in the TMPDIR which enables
37# a OE-core IDE to integrate with the build tree 41# a OE-core IDE to integrate with the build tree
38toolchain_create_tree_env_script () { 42toolchain_create_tree_env_script () {
39 script=${TMPDIR}/environment-setup-${MULTIMACH_TARGET_SYS} 43 script=${TMPDIR}/environment-setup-${REAL_MULTIMACH_TARGET_SYS}
40 rm -f $script 44 rm -f $script
41 touch $script 45 touch $script
42 echo 'export PATH=${PATH}' >> $script 46 echo 'export PATH=${PATH}' >> $script
@@ -103,8 +107,8 @@ toolchain_create_sdk_env_script_for_installer () {
103} 107}
104 108
105#we get the cached site config in the runtime 109#we get the cached site config in the runtime
106TOOLCHAIN_CONFIGSITE_NOCACHE := "${@siteinfo_get_files(d, True)}" 110TOOLCHAIN_CONFIGSITE_NOCACHE = "${@siteinfo_get_files(d, True)}"
107TOOLCHAIN_CONFIGSITE_SYSROOTCACHE := "${STAGING_DATADIR}/${TARGET_SYS}_config_site.d" 111TOOLCHAIN_CONFIGSITE_SYSROOTCACHE = "${STAGING_DATADIR}/${TARGET_SYS}_config_site.d"
108TOOLCHAIN_NEED_CONFIGSITE_CACHE = "${TCLIBC} ncurses" 112TOOLCHAIN_NEED_CONFIGSITE_CACHE = "${TCLIBC} ncurses"
109 113
110#This function create a site config file 114#This function create a site config file