From 46ee86c3d4827b609107af2d4b4d8c37f0cf0968 Mon Sep 17 00:00:00 2001 From: Randy Witt Date: Mon, 23 Feb 2015 17:00:42 +0000 Subject: scripts/oe-buildenv-internal: add means of skipping SDK check during setup 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. (From OE-Core rev: 6d847b84b9db2b315e17107a7ab4832d15cb2147) Signed-off-by: Randy Witt Signed-off-by: Paul Eggleton Signed-off-by: Richard Purdie --- scripts/oe-buildenv-internal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/oe-buildenv-internal') diff --git a/scripts/oe-buildenv-internal b/scripts/oe-buildenv-internal index bba6f8fea3..9ed2721536 100755 --- a/scripts/oe-buildenv-internal +++ b/scripts/oe-buildenv-internal @@ -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 -- cgit v1.2.3-54-g00ecf