]> code.ossystems Code Review - openembedded-core.git/commitdiff
Add option to oe-buildenv-internal script to change bitbake location.
authorPhilip Balister <philip@balister.org>
Wed, 9 May 2012 16:44:23 +0000 (12:44 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 11 May 2012 22:23:55 +0000 (23:23 +0100)
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>
scripts/oe-buildenv-internal

index 9de7b051089eef6fc535ddbe2a9b6981a0967b88..05c6cd8ce157e8a107355975736141c2b6e760d0 100755 (executable)
@@ -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"`