diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-10-10 11:34:05 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-10-10 11:34:08 +0100 |
commit | 2d9466734f0c0c90724820bc36992b2800ffa4d0 (patch) | |
tree | f91fadba34a91922420af8f97f8939af05f25b23 /meta | |
parent | 81b3cc448f040dcb4c2f2b05983231ac53270663 (diff) | |
download | openembedded-core-contrib-2d9466734f0c0c90724820bc36992b2800ffa4d0.tar.gz |
toolchains-scripts: Add support for target environment scripts
In a similar way to the previous script which adds support for native
environment scripts, this adds support for target environment scripts
too.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/toolchain-scripts.bbclass | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-scripts.bbclass index 11ffbe5be09..2244cf71c1f 100644 --- a/meta/classes/toolchain-scripts.bbclass +++ b/meta/classes/toolchain-scripts.bbclass @@ -76,6 +76,11 @@ toolchain_shared_env_script () { cat >> $script <<EOF # 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 + done +fi if [ -d "\$OECORE_NATIVE_SYSROOT/environment-setup.d" ]; then for envfile in \$OECORE_NATIVE_SYSROOT/environment-setup.d/*.sh; do source \$envfile |