<div dir="ltr">On 21 October 2017 at 13:06, Richard Purdie <span dir="ltr">&lt;<a href="mailto:richard.purdie@linuxfoundation.org" target="_blank">richard.purdie@linuxfoundation.org</a>&gt;</span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The intent of the env setup scripts is to set BBPATH to point at the<br>
build directory if not already set. This means if the user changes<br>
directory, bitbake can still find the original build directory. The<br>
default bblayers.conf files reset BBPATH to the correct components so<br>
this is safe and restores the behaviour the script was intended to have.<br>
<br>
[YOCTO #12163]<br>
<br>
Signed-off-by: Richard Purdie &lt;<a href="mailto:richard.purdie@linuxfoundation.org">richard.purdie@<wbr>linuxfoundation.org</a>&gt;<br>
---<br>
 scripts/oe-buildenv-internal | 5 +++++<br>
 1 file changed, 5 insertions(+)<br>
<br>
diff --git a/scripts/oe-buildenv-internal b/scripts/oe-buildenv-internal<br>
index e6cd141..abc5aff 100755<br>
--- a/scripts/oe-buildenv-internal<br>
+++ b/scripts/oe-buildenv-internal<br>
@@ -105,6 +105,11 @@ fi<br>
<br>
 BITBAKEDIR=$(readlink -f &quot;$BITBAKEDIR&quot;)<br>
 BUILDDIR=$(readlink -f &quot;$BUILDDIR&quot;)<br>
+if [ -z &quot;$BBPATH&quot; ]; then<br>
+    BBPATH=$BUILDDIR<br>
+fi<br>
+<br>
+export BBPATH<br></blockquote><div><br></div><div>This breaks the use-case of the user switching between build directories as re-executing oe-init-build-env doesn&#39;t change BBPATH.</div><div><br></div><div>Ross </div></div></div></div>