diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2016-03-01 00:50:53 +1300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-03-02 22:39:43 +0000 |
commit | 695cc45804771676af4c0b519b2f0b657533ebdc (patch) | |
tree | d208570b67bd424880b7d14c71b72005ad6ec246 /meta/classes/populate_sdk_ext.bbclass | |
parent | b145480d44b391ce9467389b4f1fbcd40fe4e269 (diff) | |
download | poky-695cc45804771676af4c0b519b2f0b657533ebdc.tar.gz |
classes/populate_sdk_ext: prepend to PATH rather than appending
The rest of the environment setup script prepends to PATH, so when we
add the path to run devtool we should be prepending as well. This
also ensures that when you run the environment setup script from
extensible SDK installation A and then in the same shell session run the
environment setup script from installation B, and then run devtool, that
you're running B's devtool and not A's.
Fixes [YOCTO #9046].
(From OE-Core rev: b7ac987274f7aeaeacc217488cf4fe639de81b76)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/populate_sdk_ext.bbclass')
-rw-r--r-- | meta/classes/populate_sdk_ext.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/populate_sdk_ext.bbclass b/meta/classes/populate_sdk_ext.bbclass index 9e2fc61699..27d4afc26b 100644 --- a/meta/classes/populate_sdk_ext.bbclass +++ b/meta/classes/populate_sdk_ext.bbclass | |||
@@ -323,7 +323,7 @@ sdk_ext_postinst() { | |||
323 | 323 | ||
324 | # A bit of another hack, but we need this in the path only for devtool | 324 | # A bit of another hack, but we need this in the path only for devtool |
325 | # so put it at the end of $PATH. | 325 | # so put it at the end of $PATH. |
326 | echo "export PATH=\$PATH:$target_sdk_dir/sysroots/${SDK_SYS}/${bindir_nativesdk}" >> $env_setup_script | 326 | echo "export PATH=$target_sdk_dir/sysroots/${SDK_SYS}${bindir_nativesdk}:\$PATH" >> $env_setup_script |
327 | 327 | ||
328 | echo "printf 'SDK environment now set up; additionally you may now run devtool to perform development tasks.\nRun devtool --help for further details.\n'" >> $env_setup_script | 328 | echo "printf 'SDK environment now set up; additionally you may now run devtool to perform development tasks.\nRun devtool --help for further details.\n'" >> $env_setup_script |
329 | 329 | ||