diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-09-23 15:56:31 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-09-23 20:06:06 +0100 |
| commit | 177af6e831dc9292c7d5e02f81c3e13e8af926fd (patch) | |
| tree | 0f93c98ae1b37a7f194a679b1d52b636ac11b017 | |
| parent | b65e3e26cb9ead70579022f6949c9b2ff0fee75d (diff) | |
| download | poky-177af6e831dc9292c7d5e02f81c3e13e8af926fd.tar.gz | |
oe-init-build-env-memres: Fix automatic port usage
The use of an automatic port wasn't working correctly since the server
was never getting started when port == -1. This fixes things so the
server is started when port is not specified (i.e. automatic) ensuring
this happens before BBSERVER is set.
[YOCTO #6563]
(From OE-Core rev: 982553b6d56ca4bfd095c1bcb736ae3b77deefa7)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rwxr-xr-x | oe-init-build-env-memres | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/oe-init-build-env-memres b/oe-init-build-env-memres index 00079989dc..9b9e0f44b0 100755 --- a/oe-init-build-env-memres +++ b/oe-init-build-env-memres | |||
| @@ -60,14 +60,14 @@ if [ -e bitbake.lock ] && grep : bitbake.lock > /dev/null ; then | |||
| 60 | res=$? | 60 | res=$? |
| 61 | fi | 61 | fi |
| 62 | 62 | ||
| 63 | if [ $res != 0 ] ; then | ||
| 64 | bitbake --server-only -t xmlrpc -B localhost:$port | ||
| 65 | fi | ||
| 66 | |||
| 63 | if [ $port = -1 ] ; then | 67 | if [ $port = -1 ] ; then |
| 64 | export BBSERVER=localhost:-1 | 68 | export BBSERVER=localhost:-1 |
| 65 | echo "Bitbake server started on demand as needed, use bitbake -m to shut it down" | 69 | echo "Bitbake server started on demand as needed, use bitbake -m to shut it down" |
| 66 | else | 70 | else |
| 67 | if [ $res != 0 ] ; then | ||
| 68 | bitbake --server-only -t xmlrpc -B localhost:$port | ||
| 69 | fi | ||
| 70 | |||
| 71 | export BBSERVER=`cat bitbake.lock` | 71 | export BBSERVER=`cat bitbake.lock` |
| 72 | 72 | ||
| 73 | if [ $res = 0 ] ; then | 73 | if [ $res = 0 ] ; then |
