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 16:44:33 +0100 |
commit | f8d5bfb05291cee03cc098f5d20df01b61e736a1 (patch) | |
tree | 7cf3646db32cb3bab876e34167e6853ef59da648 /meta | |
parent | ea8a7c5d3480db49dc7347a304f2f52e841e5200 (diff) | |
download | poky-f8d5bfb05291cee03cc098f5d20df01b61e736a1.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.
(From OE-Core rev: 2d9466734f0c0c90724820bc36992b2800ffa4d0)
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 11ffbe5be0..2244cf71c1 100644 --- a/meta/classes/toolchain-scripts.bbclass +++ b/meta/classes/toolchain-scripts.bbclass | |||
@@ -76,6 +76,11 @@ toolchain_shared_env_script () { | |||
76 | cat >> $script <<EOF | 76 | cat >> $script <<EOF |
77 | 77 | ||
78 | # Append environment subscripts | 78 | # Append environment subscripts |
79 | if [ -d "\$OECORE_TARGET_SYSROOT/environment-setup.d" ]; then | ||
80 | for envfile in \$OECORE_TARGET_SYSROOT/environment-setup.d/*.sh; do | ||
81 | source \$envfile | ||
82 | done | ||
83 | fi | ||
79 | if [ -d "\$OECORE_NATIVE_SYSROOT/environment-setup.d" ]; then | 84 | if [ -d "\$OECORE_NATIVE_SYSROOT/environment-setup.d" ]; then |
80 | for envfile in \$OECORE_NATIVE_SYSROOT/environment-setup.d/*.sh; do | 85 | for envfile in \$OECORE_NATIVE_SYSROOT/environment-setup.d/*.sh; do |
81 | source \$envfile | 86 | source \$envfile |