summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kanavin <alex@linutronix.de>2025-10-07 20:21:42 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-10-09 10:58:07 +0100
commit9225dc234debc46848e80d697f1d38a0a3c35e7b (patch)
treea7804a489cb85bd67f73026362b287a17d27b3f5
parentff0911b191eed695d2214d9892a1bde528b8c9f9 (diff)
downloadpoky-9225dc234debc46848e80d697f1d38a0a3c35e7b.tar.gz
meta/classes-recipe/toolchain-scripts.bbclass: eliminate bash-ism
Sourcing a script with arguments is a non-standard bash extension and doesn't work with other shells (e.g. dash, which is used on Debian and derivatives). This used to work by coincidence when running against integrated poky repo without having to separately specify where bitbake is, but no longer does. Using set is a POSIX standard. (From OE-Core rev: 933686b7c6307778d171967c49b3a7b6645c31c0) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes-recipe/toolchain-scripts.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes-recipe/toolchain-scripts.bbclass b/meta/classes-recipe/toolchain-scripts.bbclass
index ec040b5ebb..8c062ef0e7 100644
--- a/meta/classes-recipe/toolchain-scripts.bbclass
+++ b/meta/classes-recipe/toolchain-scripts.bbclass
@@ -92,7 +92,7 @@ toolchain_create_tree_env_script () {
92 touch $script 92 touch $script
93 echo 'standalone_sysroot_target="${STAGING_DIR}/${MACHINE}"' >> $script 93 echo 'standalone_sysroot_target="${STAGING_DIR}/${MACHINE}"' >> $script
94 echo 'standalone_sysroot_native="${STAGING_DIR}/${BUILD_ARCH}"' >> $script 94 echo 'standalone_sysroot_native="${STAGING_DIR}/${BUILD_ARCH}"' >> $script
95 echo "orig=`pwd`; cd ${COREBASE}; . ./oe-init-build-env ${TOPDIR} $bitbakedir; cd \$orig" >> $script 95 echo "orig=`pwd`; cd ${COREBASE}; set ${TOPDIR} $bitbakedir; . ./oe-init-build-env; cd \$orig" >> $script
96 echo 'export PATH=$standalone_sysroot_native/${bindir_native}:$standalone_sysroot_native/${bindir_native}/${TARGET_SYS}:$PATH' >> $script 96 echo 'export PATH=$standalone_sysroot_native/${bindir_native}:$standalone_sysroot_native/${bindir_native}/${TARGET_SYS}:$PATH' >> $script
97 echo 'export PKG_CONFIG_SYSROOT_DIR=$standalone_sysroot_target' >> $script 97 echo 'export PKG_CONFIG_SYSROOT_DIR=$standalone_sysroot_target' >> $script
98 echo 'export PKG_CONFIG_PATH=$standalone_sysroot_target'"$libdir"'/pkgconfig:$standalone_sysroot_target'"$prefix"'/share/pkgconfig' >> $script 98 echo 'export PKG_CONFIG_PATH=$standalone_sysroot_target'"$libdir"'/pkgconfig:$standalone_sysroot_target'"$prefix"'/share/pkgconfig' >> $script