diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-10-02 14:08:13 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-10-02 17:10:33 +0100 |
commit | 32cc952460de203f3e5db2646861de2ecc951d66 (patch) | |
tree | 67f5b071fee92c0ab5a445508ecba54531ab31d1 /scripts | |
parent | 34bd4e17437e275a2b466cfd2bafec5fb283797d (diff) | |
download | poky-32cc952460de203f3e5db2646861de2ecc951d66.tar.gz |
scripts/oe-buildenv-internal: Ensure we detect the SDK/ADT and error out
The SDK/ADT may ship with a python installed which may not have all the modules
need for a bitbake build. We should therefore detect if its already present in the
environment and error out in this case, asking the user to use a clean environment.
This also removes the potential for any other conflict between the two.
[YOCTO #2979]
(From OE-Core rev: 9496d4cd77ae632251b4262b63be857fc4fcb31e)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/oe-buildenv-internal | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/oe-buildenv-internal b/scripts/oe-buildenv-internal index 32c0ba02d6..01fffba625 100755 --- a/scripts/oe-buildenv-internal +++ b/scripts/oe-buildenv-internal | |||
@@ -24,6 +24,11 @@ if [ -z "$OEROOT" ]; then | |||
24 | return 1 | 24 | return 1 |
25 | fi | 25 | fi |
26 | 26 | ||
27 | if [ ! -z "$OECORE_SDK_VERSION" ]; then | ||
28 | echo >&2 "Error: The OE SDK/ADT was detected as already being present in this shell environment. Please use a clean shell when sourcing this environment script." | ||
29 | return 1 | ||
30 | fi | ||
31 | |||
27 | if [ "x$BDIR" = "x" ]; then | 32 | if [ "x$BDIR" = "x" ]; then |
28 | if [ "x$1" = "x" ]; then | 33 | if [ "x$1" = "x" ]; then |
29 | BDIR="build" | 34 | BDIR="build" |