mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
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: 82eeb934997c9eaa6443079dfb649a89872a222c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
5dacc55167
commit
ba2cfcc6dd
|
@ -105,6 +105,9 @@ fi
|
|||
|
||||
BITBAKEDIR=$(readlink -f "$BITBAKEDIR")
|
||||
BUILDDIR=$(readlink -f "$BUILDDIR")
|
||||
BBPATH=$BUILDDIR
|
||||
|
||||
export BBPATH
|
||||
|
||||
if [ ! -d "$BITBAKEDIR" ]; then
|
||||
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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user