summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/toolchain-scripts.bbclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-scripts.bbclass
index 02e69c8400..32d8c32309 100644
--- a/meta/classes/toolchain-scripts.bbclass
+++ b/meta/classes/toolchain-scripts.bbclass
@@ -8,7 +8,8 @@ TARGET_CC_ARCH_append_libc-musl = " -mmusl"
8 8
9# This function creates an environment-setup-script for use in a deployable SDK 9# This function creates an environment-setup-script for use in a deployable SDK
10toolchain_create_sdk_env_script () { 10toolchain_create_sdk_env_script () {
11 # Create environment setup script 11 # Create environment setup script. Remember that $SDKTARGETSYSROOT should
12 # only be expanded on the target at runtime.
12 base_sbindir=${10:-${base_sbindir_nativesdk}} 13 base_sbindir=${10:-${base_sbindir_nativesdk}}
13 base_bindir=${9:-${base_bindir_nativesdk}} 14 base_bindir=${9:-${base_bindir_nativesdk}}
14 sbindir=${8:-${sbindir_nativesdk}} 15 sbindir=${8:-${sbindir_nativesdk}}
@@ -29,7 +30,7 @@ toolchain_create_sdk_env_script () {
29 echo "export PATH=$sdkpathnative$bindir:$sdkpathnative$sbindir:$sdkpathnative$base_bindir:$sdkpathnative$base_sbindir:$sdkpathnative$bindir/../${HOST_SYS}/bin:$sdkpathnative$bindir/${TARGET_SYS}"$EXTRAPATH':$PATH' >> $script 30 echo "export PATH=$sdkpathnative$bindir:$sdkpathnative$sbindir:$sdkpathnative$base_bindir:$sdkpathnative$base_sbindir:$sdkpathnative$bindir/../${HOST_SYS}/bin:$sdkpathnative$bindir/${TARGET_SYS}"$EXTRAPATH':$PATH' >> $script
30 echo "export CCACHE_PATH=$sdkpathnative$bindir:$sdkpathnative$bindir/../${HOST_SYS}/bin:$sdkpathnative$bindir/${TARGET_SYS}"$EXTRAPATH':$CCACHE_PATH' >> $script 31 echo "export CCACHE_PATH=$sdkpathnative$bindir:$sdkpathnative$bindir/../${HOST_SYS}/bin:$sdkpathnative$bindir/${TARGET_SYS}"$EXTRAPATH':$CCACHE_PATH' >> $script
31 echo 'export PKG_CONFIG_SYSROOT_DIR=$SDKTARGETSYSROOT' >> $script 32 echo 'export PKG_CONFIG_SYSROOT_DIR=$SDKTARGETSYSROOT' >> $script
32 echo 'export PKG_CONFIG_PATH=$SDKTARGETSYSROOT'"$libdir"'/pkgconfig' >> $script 33 echo 'export PKG_CONFIG_PATH=$SDKTARGETSYSROOT'"$libdir"'/pkgconfig:$SDKTARGETSYSROOT'"$prefix"'/share/pkgconfig' >> $script
33 echo 'export CONFIG_SITE=${SDKPATH}/site-config-'"${multimach_target_sys}" >> $script 34 echo 'export CONFIG_SITE=${SDKPATH}/site-config-'"${multimach_target_sys}" >> $script
34 echo "export OECORE_NATIVE_SYSROOT=\"$sdkpathnative\"" >> $script 35 echo "export OECORE_NATIVE_SYSROOT=\"$sdkpathnative\"" >> $script
35 echo 'export OECORE_TARGET_SYSROOT="$SDKTARGETSYSROOT"' >> $script 36 echo 'export OECORE_TARGET_SYSROOT="$SDKTARGETSYSROOT"' >> $script