summaryrefslogtreecommitdiffstats
path: root/oe-init-build-env
diff options
context:
space:
mode:
Diffstat (limited to 'oe-init-build-env')
-rwxr-xr-xoe-init-build-env10
1 files changed, 7 insertions, 3 deletions
diff --git a/oe-init-build-env b/oe-init-build-env
index 0b4df1b2dc..5fe68d1e2a 100755
--- a/oe-init-build-env
+++ b/oe-init-build-env
@@ -48,11 +48,15 @@ fi
48unset THIS_SCRIPT 48unset THIS_SCRIPT
49 49
50export OEROOT 50export OEROOT
51. $OEROOT/scripts/oe-buildenv-internal && \ 51. $OEROOT/scripts/oe-buildenv-internal &&
52 TEMPLATECONF="$TEMPLATECONF" $OEROOT/scripts/oe-setup-builddir && \ 52 TEMPLATECONF="$TEMPLATECONF" $OEROOT/scripts/oe-setup-builddir || {
53 [ -n "$BUILDDIR" ] && cd "$BUILDDIR" 53 unset OEROOT
54 return 1
55}
54unset OEROOT 56unset OEROOT
55 57
58[ -z "$BUILDDIR" ] || cd "$BUILDDIR"
59
56# Shutdown any bitbake server if the BBSERVER variable is not set 60# Shutdown any bitbake server if the BBSERVER variable is not set
57if [ -z "$BBSERVER" ] && [ -f bitbake.lock ]; then 61if [ -z "$BBSERVER" ] && [ -f bitbake.lock ]; then
58 grep ":" bitbake.lock > /dev/null && BBSERVER=$(cat bitbake.lock) bitbake --status-only 62 grep ":" bitbake.lock > /dev/null && BBSERVER=$(cat bitbake.lock) bitbake --status-only