All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] oe-buildenv-internal: Fix finding build directory
@ 2017-10-21 12:06 Richard Purdie
  2017-10-22 13:09 ` Otavio Salvador
  2017-10-31 23:16 ` Burton, Ross
  0 siblings, 2 replies; 7+ messages in thread
From: Richard Purdie @ 2017-10-21 12:06 UTC (permalink / raw)
  To: openembedded-core

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@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"
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-11-02 11:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-21 12:06 [PATCH] oe-buildenv-internal: Fix finding build directory Richard Purdie
2017-10-22 13:09 ` Otavio Salvador
2017-10-31 23:16 ` Burton, Ross
2017-10-31 23:25   ` Otavio Salvador
2017-11-01 22:04     ` Richard Purdie
2017-11-02  0:51       ` Burton, Ross
2017-11-02 11:28         ` Otavio Salvador

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.