summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/oe-buildenv-internal7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/oe-buildenv-internal b/scripts/oe-buildenv-internal
index 05c6cd8ce..32c0ba02d 100755
--- a/scripts/oe-buildenv-internal
+++ b/scripts/oe-buildenv-internal
@@ -46,6 +46,9 @@ if [ "x$BDIR" = "x" ]; then
return 1
fi
fi
+ if [ "x$2" != "x" ]; then
+ BITBAKEDIR="$2"
+ fi
fi
if expr "$BDIR" : '/.*' > /dev/null ; then
BUILDDIR="$BDIR"
@@ -54,10 +57,8 @@ else
fi
unset BDIR
-if [ "x$2" = "x" ]; then
+if [ "x$BITBAKEDIR" = "x" ]; then
BITBAKEDIR="$OEROOT/bitbake$BBEXTRA/"
-else
- BITBAKEDIR="$2"
fi
BITBAKEDIR=`readlink -f "$BITBAKEDIR"`