From 45510a0dd7a9321c29c5b21ac4053192f7ab9ad5 Mon Sep 17 00:00:00 2001 From: Philip Balister Date: Wed, 9 May 2012 12:44:23 -0400 Subject: 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 Signed-off-by: Richard Purdie --- scripts/oe-buildenv-internal | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts') 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"` -- cgit v1.2.3