diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2015-10-19 17:33:11 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-10-20 10:12:01 +0100 |
commit | 9630fc1d6588dbf62c9fe51bfe5b15e155f47566 (patch) | |
tree | bb2ab1b032a90dc5ff8475d0ac557c3e5a30d09c | |
parent | 254ff388cedc1df292f9068fa1bfc3706b529961 (diff) | |
download | poky-9630fc1d6588dbf62c9fe51bfe5b15e155f47566.tar.gz |
classes/populate_sdk_ext: detect and warn if running in OE environment
If you run the extensible SDK environment setup script in a shell
session where oe-init-build-env has been run already, and attempt to use
the two together, strange things happen - you may not even be running
devtool from the extensible SDK, but the OE tree. This isn't a supported
use case anyway, so show a warning recommending starting a new shell
session.
(From OE-Core rev: 41afc48ab979dff6ebb3ea4003dd6baefff7f644)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/populate_sdk_ext.bbclass | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/populate_sdk_ext.bbclass b/meta/classes/populate_sdk_ext.bbclass index 060a44ae88..249ec363db 100644 --- a/meta/classes/populate_sdk_ext.bbclass +++ b/meta/classes/populate_sdk_ext.bbclass | |||
@@ -238,6 +238,9 @@ sdk_ext_postinst() { | |||
238 | 238 | ||
239 | 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 | 239 | 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 |
240 | 240 | ||
241 | # Warn if trying to use external bitbake and the ext SDK together | ||
242 | echo "(which bitbake > /dev/null 2>&1 && echo 'WARNING: attempting to use the extensible SDK in an environment set up to run bitbake - this may lead to unexpected results. Please source this script in a new shell session instead.') || true" >> $env_setup_script | ||
243 | |||
241 | # For now this is where uninative.bbclass expects the tarball | 244 | # For now this is where uninative.bbclass expects the tarball |
242 | mv *-nativesdk-libc.tar.* $target_sdk_dir/`dirname ${oe_init_build_env_path}` | 245 | mv *-nativesdk-libc.tar.* $target_sdk_dir/`dirname ${oe_init_build_env_path}` |
243 | 246 | ||