summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Balister <philip@balister.org>2012-05-09 12:44:23 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-11 23:23:55 +0100
commit45510a0dd7a9321c29c5b21ac4053192f7ab9ad5 (patch)
tree92895a533e9804f5c606fe55020bfa3d6b1327d5
parent10546e42a0db6a9585488536e29759239ef6e73b (diff)
downloadopenembedded-core-45510a0dd7a9321c29c5b21ac4053192f7ab9ad5.tar.gz
openembedded-core-45510a0dd7a9321c29c5b21ac4053192f7ab9ad5.tar.bz2
openembedded-core-45510a0dd7a9321c29c5b21ac4053192f7ab9ad5.tar.xz
openembedded-core-45510a0dd7a9321c29c5b21ac4053192f7ab9ad5.zip
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. Signed-off-by: Philip Balister <philip@balister.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xscripts/oe-buildenv-internal6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/oe-buildenv-internal b/scripts/oe-buildenv-internal
index 9de7b0510..05c6cd8ce 100755
--- a/scripts/oe-buildenv-internal
+++ b/scripts/oe-buildenv-internal
@@ -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"`