Add option to oe-buildenv-internal script to change bitbake location.

Having bitbake inside the oe-core is annoying to some people. This commit
adds a second option to the oe-init-build-env script.

Run like this:

. ./oe-init-build-env ../build ../bitbake

for example. Without the second option, the old behavior is preserved.

(From OE-Core rev: 45510a0dd7a9321c29c5b21ac4053192f7ab9ad5)

Signed-off-by: Philip Balister <philip@balister.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Philip Balister 2012-05-09 12:44:23 -04:00 committed by Richard Purdie
parent c08ee52519
commit 350a459dc3
1 changed files with 5 additions and 1 deletions

View File

@ -54,7 +54,11 @@ else
fi
unset BDIR
BITBAKEDIR="$OEROOT/bitbake$BBEXTRA/"
if [ "x$2" = "x" ]; then
BITBAKEDIR="$OEROOT/bitbake$BBEXTRA/"
else
BITBAKEDIR="$2"
fi
BITBAKEDIR=`readlink -f "$BITBAKEDIR"`
BUILDDIR=`readlink -f "$BUILDDIR"`