diff options
Diffstat (limited to 'oe-init-build-env')
-rwxr-xr-x | oe-init-build-env | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/oe-init-build-env b/oe-init-build-env index de9692fe44..8ef32f3d55 100755 --- a/oe-init-build-env +++ b/oe-init-build-env | |||
@@ -47,3 +47,12 @@ else | |||
47 | unset BBPATH | 47 | unset BBPATH |
48 | fi | 48 | fi |
49 | 49 | ||
50 | # Shutdown any bitbake server if the BBSERVER variable is not set | ||
51 | if [ -z "$BBSERVER" ] && [ -f bitbake.lock ] ; then | ||
52 | grep ":" bitbake.lock > /dev/null && BBSERVER=`cat bitbake.lock` bitbake --status-only | ||
53 | if [ $? = 0 ] ; then | ||
54 | echo "Shutting down bitbake memory resident server with bitbake -m" | ||
55 | BBSERVER=`cat bitbake.lock` bitbake -m | ||
56 | fi | ||
57 | fi | ||
58 | |||