summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-10-21 13:00:52 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-12-04 17:23:54 +0000
commit87f8aafd533132dbfc8bd82f2c06fa4e9f22095f (patch)
treefe833350bd2bf171925c8d0087fadbdfbcbeed4d /scripts
parent67094521712fa85138e216bb05876fd0c6161598 (diff)
downloadpoky-87f8aafd533132dbfc8bd82f2c06fa4e9f22095f.tar.gz
oe-buildenv-internal: Fix finding build directory
The intent of the env setup scripts is to set BBPATH to point at the build directory. This means if the user changes directory, bitbake can still find the original build directory. The default bblayers.conf files reset BBPATH to the correct components so this is safe and restores the behaviour the script was intended to have. [YOCTO #12163] (From OE-Core rev: bfacf88f15a27db579d8790d92f8497d832961f8) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 82eeb934997c9eaa6443079dfb649a89872a222c) Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/oe-buildenv-internal3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/oe-buildenv-internal b/scripts/oe-buildenv-internal
index e6cd141ff5..77f98a32b9 100755
--- a/scripts/oe-buildenv-internal
+++ b/scripts/oe-buildenv-internal
@@ -105,6 +105,9 @@ fi
105 105
106BITBAKEDIR=$(readlink -f "$BITBAKEDIR") 106BITBAKEDIR=$(readlink -f "$BITBAKEDIR")
107BUILDDIR=$(readlink -f "$BUILDDIR") 107BUILDDIR=$(readlink -f "$BUILDDIR")
108BBPATH=$BUILDDIR
109
110export BBPATH
108 111
109if [ ! -d "$BITBAKEDIR" ]; then 112if [ ! -d "$BITBAKEDIR" ]; then
110 echo >&2 "Error: The bitbake directory ($BITBAKEDIR) does not exist! Please ensure a copy of bitbake exists at this location or specify an alternative path on the command line" 113 echo >&2 "Error: The bitbake directory ($BITBAKEDIR) does not exist! Please ensure a copy of bitbake exists at this location or specify an alternative path on the command line"