summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-10-10 11:34:05 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-10-10 11:34:08 +0100
commit2d9466734f0c0c90724820bc36992b2800ffa4d0 (patch)
treef91fadba34a91922420af8f97f8939af05f25b23
parent81b3cc448f040dcb4c2f2b05983231ac53270663 (diff)
downloadopenembedded-core-contrib-2d9466734f0c0c90724820bc36992b2800ffa4d0.tar.gz
openembedded-core-contrib-2d9466734f0c0c90724820bc36992b2800ffa4d0.tar.bz2
openembedded-core-contrib-2d9466734f0c0c90724820bc36992b2800ffa4d0.zip
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>
-rw-r--r--meta/classes/toolchain-scripts.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-scripts.bbclass
index 11ffbe5be0..2244cf71c1 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