[oe-commits] [openembedded-core] branch master-next updated: oe-buildenv-internal: Fix finding build directory

git at git.openembedded.org git at git.openembedded.org
Tue Oct 24 13:55:42 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

The following commit(s) were added to refs/heads/master-next by this push:
     new 341b95a  oe-buildenv-internal: Fix finding build directory
341b95a is described below

commit 341b95a4156c34180fea85e015898a063968d387
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Sat Oct 21 13:00:52 2017 +0100

    oe-buildenv-internal: Fix finding build directory
    
    The intent of the env setup scripts is to set BBPATH to point at the
    build directory if not already set. 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]
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 scripts/oe-buildenv-internal | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/scripts/oe-buildenv-internal b/scripts/oe-buildenv-internal
index e6cd141..abc5aff 100755
--- a/scripts/oe-buildenv-internal
+++ b/scripts/oe-buildenv-internal
@@ -105,6 +105,11 @@ fi
 
 BITBAKEDIR=$(readlink -f "$BITBAKEDIR")
 BUILDDIR=$(readlink -f "$BUILDDIR")
+if [ -z "$BBPATH" ]; then
+    BBPATH=$BUILDDIR
+fi
+
+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"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list