diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake index e77266b4ba..0d6b3ae4c9 100755 --- a/bitbake/bin/bitbake +++ b/bitbake/bin/bitbake @@ -197,6 +197,9 @@ class BitBakeConfigParameters(cookerdata.ConfigParameters): parser.add_option("", "--remote-server", help = "Connect to the specified server", action = "store", dest = "remote_server", default = False) + parser.add_option("-m", "--kill-server", help = "Terminate the remote server", + action = "store_true", dest = "kill_server", default = False) + parser.add_option("", "--observe-only", help = "Connect to a server as an observing-only client", action = "store_true", dest = "observe_only", default = False) diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py index c6a1d3f98a..2c8293d985 100644 --- a/bitbake/lib/bb/ui/knotty.py +++ b/bitbake/lib/bb/ui/knotty.py @@ -250,6 +250,10 @@ def main(server, eventHandler, params, tf = TerminalFilter): console.setFormatter(format) logger.addHandler(console) + if params.options.remote_server and params.options.kill_server: + server.terminateServer() + return + if consolelogfile and not params.options.show_environment: bb.utils.mkdirhier(os.path.dirname(consolelogfile)) conlogformat = bb.msg.BBLogFormatter(format_str)