diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/oe-buildenv-internal | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/oe-buildenv-internal b/scripts/oe-buildenv-internal index 05c6cd8ce1..32c0ba02d6 100755 --- a/scripts/oe-buildenv-internal +++ b/scripts/oe-buildenv-internal | |||
@@ -46,6 +46,9 @@ if [ "x$BDIR" = "x" ]; then | |||
46 | return 1 | 46 | return 1 |
47 | fi | 47 | fi |
48 | fi | 48 | fi |
49 | if [ "x$2" != "x" ]; then | ||
50 | BITBAKEDIR="$2" | ||
51 | fi | ||
49 | fi | 52 | fi |
50 | if expr "$BDIR" : '/.*' > /dev/null ; then | 53 | if expr "$BDIR" : '/.*' > /dev/null ; then |
51 | BUILDDIR="$BDIR" | 54 | BUILDDIR="$BDIR" |
@@ -54,10 +57,8 @@ else | |||
54 | fi | 57 | fi |
55 | unset BDIR | 58 | unset BDIR |
56 | 59 | ||
57 | if [ "x$2" = "x" ]; then | 60 | if [ "x$BITBAKEDIR" = "x" ]; then |
58 | BITBAKEDIR="$OEROOT/bitbake$BBEXTRA/" | 61 | BITBAKEDIR="$OEROOT/bitbake$BBEXTRA/" |
59 | else | ||
60 | BITBAKEDIR="$2" | ||
61 | fi | 62 | fi |
62 | 63 | ||
63 | BITBAKEDIR=`readlink -f "$BITBAKEDIR"` | 64 | BITBAKEDIR=`readlink -f "$BITBAKEDIR"` |