From: Stephano Cetola Date: Thu, 28 Apr 2016 20:43:27 +0000 (-0700) Subject: toolchain-scripts: replace source built-in call X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~26047 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eef010bd91933d0c4b917d12e5716aa7e16b7307;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git toolchain-scripts: replace source built-in call Some shells (e.g. dash) do not support the source built-in. This replaces it with the dot operator. [ YOCTO #9535 ] Signed-off-by: Stephano Cetola Signed-off-by: Richard Purdie --- diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-scripts.bbclass index 2e2c93af41d..02e69c8400c 100644 --- a/meta/classes/toolchain-scripts.bbclass +++ b/meta/classes/toolchain-scripts.bbclass @@ -89,12 +89,12 @@ toolchain_shared_env_script () { # Append environment subscripts if [ -d "\$OECORE_TARGET_SYSROOT/environment-setup.d" ]; then for envfile in \$OECORE_TARGET_SYSROOT/environment-setup.d/*.sh; do - source \$envfile + . \$envfile done fi if [ -d "\$OECORE_NATIVE_SYSROOT/environment-setup.d" ]; then for envfile in \$OECORE_NATIVE_SYSROOT/environment-setup.d/*.sh; do - source \$envfile + . \$envfile done fi EOF