]> code.ossystems Code Review - openembedded-core.git/commitdiff
scripts/oe-buildenv-internal: add means of skipping SDK check during setup
authorRandy Witt <randy.e.witt@linux.intel.com>
Mon, 23 Feb 2015 17:00:42 +0000 (17:00 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 23 Feb 2015 18:00:12 +0000 (18:00 +0000)
The oe-buildenv-internal script checks if the user is already in an sdk
environment and errors if true. Add a way to skip this check.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/oe-buildenv-internal

index bba6f8fea332867dccc215dc9c8b9ee00b2d137b..9ed272153675a65ae088aee65c72aa5023e2ee99 100755 (executable)
@@ -24,7 +24,7 @@ if [ -z "$OEROOT" ]; then
     return 1
 fi
 
-if [ ! -z "$OECORE_SDK_VERSION" ]; then
+if [ -z "$OE_SKIP_SDK_CHECK" -a ! -z "$OECORE_SDK_VERSION" ]; then
     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."
     return 1
 fi