[oe-commits] Philip Balister : Add option to oe-buildenv-internal script to change bitbake location.

git at git.openembedded.org git at git.openembedded.org
Fri May 11 22:31:42 UTC 2012


Module: openembedded-core.git
Branch: master
Commit: 45510a0dd7a9321c29c5b21ac4053192f7ab9ad5
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=45510a0dd7a9321c29c5b21ac4053192f7ab9ad5

Author: Philip Balister <philip at balister.org>
Date:   Wed May  9 12:44:23 2012 -0400

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 at balister.org>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 scripts/oe-buildenv-internal |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/scripts/oe-buildenv-internal b/scripts/oe-buildenv-internal
index 9de7b05..05c6cd8 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"`





More information about the Openembedded-commits mailing list