summaryrefslogtreecommitdiff
path: root/scripts/oe-buildenv-internal
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:24:03 +0100
commit2b37fc6d91ec7c3575ac37c053254c587003d76c (patch)
treeec1fc0f384254aae1721e14fdb7c6d7b4c274966 /scripts/oe-buildenv-internal
parent971349f3504e2e69e328f90a3108531c52c92fcd (diff)
downloadtizen-distro-2b37fc6d91ec7c3575ac37c053254c587003d76c.tar.gz
tizen-distro-2b37fc6d91ec7c3575ac37c053254c587003d76c.tar.bz2
tizen-distro-2b37fc6d91ec7c3575ac37c053254c587003d76c.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. (From OE-Core rev: 45510a0dd7a9321c29c5b21ac4053192f7ab9ad5) Signed-off-by: Philip Balister <philip@balister.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/oe-buildenv-internal')
-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 9de7b05108..05c6cd8ce1 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"`