diff options
-rw-r--r-- | meta/classes/toolchain-scripts.bbclass | 5 | ||||
-rw-r--r-- | meta/conf/bitbake.conf | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-scripts.bbclass index 1566dd64d9..2e2c93af41 100644 --- a/meta/classes/toolchain-scripts.bbclass +++ b/meta/classes/toolchain-scripts.bbclass | |||
@@ -9,6 +9,9 @@ TARGET_CC_ARCH_append_libc-musl = " -mmusl" | |||
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 |
10 | toolchain_create_sdk_env_script () { | 10 | toolchain_create_sdk_env_script () { |
11 | # Create environment setup script | 11 | # Create environment setup script |
12 | base_sbindir=${10:-${base_sbindir_nativesdk}} | ||
13 | base_bindir=${9:-${base_bindir_nativesdk}} | ||
14 | sbindir=${8:-${sbindir_nativesdk}} | ||
12 | sdkpathnative=${7:-${SDKPATHNATIVE}} | 15 | sdkpathnative=${7:-${SDKPATHNATIVE}} |
13 | prefix=${6:-${prefix_nativesdk}} | 16 | prefix=${6:-${prefix_nativesdk}} |
14 | bindir=${5:-${bindir_nativesdk}} | 17 | bindir=${5:-${bindir_nativesdk}} |
@@ -23,7 +26,7 @@ toolchain_create_sdk_env_script () { | |||
23 | for i in ${CANADIANEXTRAOS}; do | 26 | for i in ${CANADIANEXTRAOS}; do |
24 | EXTRAPATH="$EXTRAPATH:$sdkpathnative$bindir/${TARGET_ARCH}${TARGET_VENDOR}-$i" | 27 | EXTRAPATH="$EXTRAPATH:$sdkpathnative$bindir/${TARGET_ARCH}${TARGET_VENDOR}-$i" |
25 | done | 28 | done |
26 | echo "export PATH=$sdkpathnative$bindir:$sdkpathnative$bindir/../${HOST_SYS}/bin:$sdkpathnative$bindir/${TARGET_SYS}"$EXTRAPATH':$PATH' >> $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 |
27 | echo "export CCACHE_PATH=$sdkpathnative$bindir:$sdkpathnative$bindir/../${HOST_SYS}/bin:$sdkpathnative$bindir/${TARGET_SYS}"$EXTRAPATH':$CCACHE_PATH' >> $script | 30 | echo "export CCACHE_PATH=$sdkpathnative$bindir:$sdkpathnative$bindir/../${HOST_SYS}/bin:$sdkpathnative$bindir/${TARGET_SYS}"$EXTRAPATH':$CCACHE_PATH' >> $script |
28 | echo 'export PKG_CONFIG_SYSROOT_DIR=$SDKTARGETSYSROOT' >> $script | 31 | echo 'export PKG_CONFIG_SYSROOT_DIR=$SDKTARGETSYSROOT' >> $script |
29 | echo 'export PKG_CONFIG_PATH=$SDKTARGETSYSROOT'"$libdir"'/pkgconfig' >> $script | 32 | echo 'export PKG_CONFIG_PATH=$SDKTARGETSYSROOT'"$libdir"'/pkgconfig' >> $script |
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 631b759349..4ea0fe56fa 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -62,6 +62,9 @@ bindir_cross = "/bin" | |||
62 | bindir_crossscripts = "${bindir}/crossscripts" | 62 | bindir_crossscripts = "${bindir}/crossscripts" |
63 | prefix_nativesdk = "/usr" | 63 | prefix_nativesdk = "/usr" |
64 | bindir_nativesdk = "${prefix_nativesdk}/bin" | 64 | bindir_nativesdk = "${prefix_nativesdk}/bin" |
65 | sbindir_nativesdk = "${prefix_nativesdk}/sbin" | ||
66 | base_bindir_nativesdk = "/bin" | ||
67 | base_sbindir_nativesdk = "/sbin" | ||
65 | includedir_nativesdk = "${prefix_nativesdk}/include" | 68 | includedir_nativesdk = "${prefix_nativesdk}/include" |
66 | libdir_nativesdk = "${prefix_nativesdk}/lib" | 69 | libdir_nativesdk = "${prefix_nativesdk}/lib" |
67 | base_libdir_nativesdk = "/lib" | 70 | base_libdir_nativesdk = "/lib" |