diff options
author | Philip Balister <philip@balister.org> | 2012-05-09 12:44:23 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-05-11 23:24:03 +0100 |
commit | 350a459dc3e38ba4240fd0b0ca45250dbacdea51 (patch) | |
tree | 79c5dfd0f8930a2263d64a6c890c96928564c4a3 /scripts | |
parent | c08ee525190df4bcfdb2e772c31ccd0c4228d2ad (diff) | |
download | poky-350a459dc3e38ba4240fd0b0ca45250dbacdea51.tar.gz |
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')
-rwxr-xr-x | 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 9de7b05108..05c6cd8ce1 100755 --- a/scripts/oe-buildenv-internal +++ b/scripts/oe-buildenv-internal | |||
@@ -54,7 +54,11 @@ else | |||
54 | fi | 54 | fi |
55 | unset BDIR | 55 | unset BDIR |
56 | 56 | ||
57 | BITBAKEDIR="$OEROOT/bitbake$BBEXTRA/" | 57 | if [ "x$2" = "x" ]; then |
58 | BITBAKEDIR="$OEROOT/bitbake$BBEXTRA/" | ||
59 | else | ||
60 | BITBAKEDIR="$2" | ||
61 | fi | ||
58 | 62 | ||
59 | BITBAKEDIR=`readlink -f "$BITBAKEDIR"` | 63 | BITBAKEDIR=`readlink -f "$BITBAKEDIR"` |
60 | BUILDDIR=`readlink -f "$BUILDDIR"` | 64 | BUILDDIR=`readlink -f "$BUILDDIR"` |