summaryrefslogtreecommitdiffstats
path: root/oe-init-build-env-memres
diff options
context:
space:
mode:
Diffstat (limited to 'oe-init-build-env-memres')
-rwxr-xr-xoe-init-build-env-memres21
1 files changed, 18 insertions, 3 deletions
diff --git a/oe-init-build-env-memres b/oe-init-build-env-memres
index 79b91b751a..687d5e1225 100755
--- a/oe-init-build-env-memres
+++ b/oe-init-build-env-memres
@@ -54,6 +54,21 @@ else
54 unset OEROOT 54 unset OEROOT
55 unset BBPATH 55 unset BBPATH
56fi 56fi
57bitbake --server-only -t xmlrpc -B localhost:$port 57res=1
58export BBSERVER=localhost:$port 58if [ -e bitbake.lock ] && grep : bitbake.lock > /dev/null ; then
59echo "Bitbake server started on port $port, use bitbake -m to shut it down" 59 BBSERVER=`cat bitbake.lock` bitbake --status-only
60 res=$?
61fi
62
63if [ $res != 0 ] ; then
64 bitbake --server-only -t xmlrpc -B localhost:$port
65fi
66
67export BBSERVER=`cat bitbake.lock`
68
69if [ $res = 0 ] ; then
70 echo "Using existing bitbake server at: $BBSERVER, use bitbake -m to shut it down"
71else
72 echo "Bitbake server started at: $BBSERVER, use bitbake -m to shut it down"
73fi
74unset res