diff options
| -rwxr-xr-x | oe-init-build-env | 10 | ||||
| -rwxr-xr-x | oe-init-build-env-memres | 10 |
2 files changed, 14 insertions, 6 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 | |||
| 48 | unset THIS_SCRIPT | 48 | unset THIS_SCRIPT |
| 49 | 49 | ||
| 50 | export OEROOT | 50 | export 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 | } | ||
| 54 | unset OEROOT | 56 | unset 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 |
| 57 | if [ -z "$BBSERVER" ] && [ -f bitbake.lock ]; then | 61 | if [ -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 |
diff --git a/oe-init-build-env-memres b/oe-init-build-env-memres index 9d393f5812..9e1425ea83 100755 --- a/oe-init-build-env-memres +++ b/oe-init-build-env-memres | |||
| @@ -56,11 +56,15 @@ fi | |||
| 56 | unset THIS_SCRIPT | 56 | unset THIS_SCRIPT |
| 57 | 57 | ||
| 58 | export OEROOT | 58 | export OEROOT |
| 59 | . $OEROOT/scripts/oe-buildenv-internal && \ | 59 | . $OEROOT/scripts/oe-buildenv-internal && |
| 60 | TEMPLATECONF="$TEMPLATECONF" $OEROOT/scripts/oe-setup-builddir && \ | 60 | TEMPLATECONF="$TEMPLATECONF" $OEROOT/scripts/oe-setup-builddir || { |
| 61 | [ -n "$BUILDDIR" ] && cd "$BUILDDIR" | 61 | unset OEROOT |
| 62 | return 1 | ||
| 63 | } | ||
| 62 | unset OEROOT | 64 | unset OEROOT |
| 63 | 65 | ||
| 66 | [ -z "$BUILDDIR" ] || cd "$BUILDDIR" | ||
| 67 | |||
| 64 | res=1 | 68 | res=1 |
| 65 | if [ -e bitbake.lock ] && grep : bitbake.lock > /dev/null; then | 69 | if [ -e bitbake.lock ] && grep : bitbake.lock > /dev/null; then |
| 66 | BBSERVER=$(cat bitbake.lock) bitbake --status-only | 70 | BBSERVER=$(cat bitbake.lock) bitbake --status-only |
