diff options
author | Stephano Cetola <stephano.cetola@linux.intel.com> | 2016-04-28 13:43:27 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-06 10:31:12 +0100 |
commit | 36a26402feaed9f93eaaa9dc673067051527fe83 (patch) | |
tree | f42a15ede5331438dfa3aa6c591c3c764aff6adf | |
parent | a2526b575a52c4dcfcddc4434d85d1ced0ab5b97 (diff) | |
download | poky-36a26402feaed9f93eaaa9dc673067051527fe83.tar.gz |
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 ]
(From OE-Core rev: eef010bd91933d0c4b917d12e5716aa7e16b7307)
Signed-off-by: Stephano Cetola <stephano.cetola@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/toolchain-scripts.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-scripts.bbclass index 2e2c93af41..02e69c8400 100644 --- a/meta/classes/toolchain-scripts.bbclass +++ b/meta/classes/toolchain-scripts.bbclass | |||
@@ -89,12 +89,12 @@ toolchain_shared_env_script () { | |||
89 | # Append environment subscripts | 89 | # Append environment subscripts |
90 | if [ -d "\$OECORE_TARGET_SYSROOT/environment-setup.d" ]; then | 90 | if [ -d "\$OECORE_TARGET_SYSROOT/environment-setup.d" ]; then |
91 | for envfile in \$OECORE_TARGET_SYSROOT/environment-setup.d/*.sh; do | 91 | for envfile in \$OECORE_TARGET_SYSROOT/environment-setup.d/*.sh; do |
92 | source \$envfile | 92 | . \$envfile |
93 | done | 93 | done |
94 | fi | 94 | fi |
95 | if [ -d "\$OECORE_NATIVE_SYSROOT/environment-setup.d" ]; then | 95 | if [ -d "\$OECORE_NATIVE_SYSROOT/environment-setup.d" ]; then |
96 | for envfile in \$OECORE_NATIVE_SYSROOT/environment-setup.d/*.sh; do | 96 | for envfile in \$OECORE_NATIVE_SYSROOT/environment-setup.d/*.sh; do |
97 | source \$envfile | 97 | . \$envfile |
98 | done | 98 | done |
99 | fi | 99 | fi |
100 | EOF | 100 | EOF |