bitbake: bitbake: Improve remote server handling
Two fixes in bitbake related to running remote servers - * can now specify correctly the bind port * the information in print conforms to common server infrastructure (Bitbake rev: b657208ee15ae065e5fcc2dd6e0051e03d246727) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
f549cdd712
commit
0ac7a182aa
|
@ -204,7 +204,8 @@ class BitBakeConfigParameters(cookerdata.ConfigParameters):
|
||||||
def start_server(servermodule, configParams, configuration):
|
def start_server(servermodule, configParams, configuration):
|
||||||
server = servermodule.BitBakeServer()
|
server = servermodule.BitBakeServer()
|
||||||
if configParams.bind:
|
if configParams.bind:
|
||||||
server.initServer((configParams.bind, 0))
|
(host, port) = configParams.bind.split(':')
|
||||||
|
server.initServer((host, int(port)))
|
||||||
else:
|
else:
|
||||||
server.initServer()
|
server.initServer()
|
||||||
|
|
||||||
|
@ -313,7 +314,7 @@ def main():
|
||||||
bb.event.ui_queue = []
|
bb.event.ui_queue = []
|
||||||
server_connection.terminate()
|
server_connection.terminate()
|
||||||
else:
|
else:
|
||||||
print("server address: %s, server port: %s" % (server.serverinfo.host, server.serverinfo.port))
|
print("server address: %s, server port: %s" % (server.serverImpl.host, server.serverImpl.port))
|
||||||
|
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue