summaryrefslogtreecommitdiffstats
path: root/bitbake/bin
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-20 22:54:41 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-22 12:10:13 +0100
commitf0930c8d63cc9fd8ead759b3230ab708fffa6ed4 (patch)
treed589dce4ac5f1fb34ee6d21fc9889a9d6a48b81d /bitbake/bin
parentf242f5060bbc62815b6d5a245c1a9bf18f23675f (diff)
downloadpoky-f0930c8d63cc9fd8ead759b3230ab708fffa6ed4.tar.gz
bitbake: cooker: Move commandline parsing back into the UI/cookerdata
Building up a set of actions for the server is tricky since we depend upon the commandline but fall back to values from the datastore. We should be able to build a datastore without a commandline and vice versa. Ultimately the UI should send the commands to the server. This patch amounts to code rearranging, moving the heavy lifting to the UI, though a helper in the configuration option. This will need further cleanup/tweaking but this should be the only update needed to the UIs. The code now queries the server for any missing data should it need to. This code allows various knowledge of configuration variables to move to the UI side only, partcularly pkgs_to_build but also all the command specifiers. It should also be possible to move cmd eventually, I'm just unsure if any callers call the commands expecting this to default to something sane right now. (Bitbake rev: 2dbbb1d51dafd4451fef8fe16f095bcd4b8f1177) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/bin')
-rwxr-xr-xbitbake/bin/bitbake3
1 files changed, 1 insertions, 2 deletions
diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake
index 7087d2d94b..c87e5b3984 100755
--- a/bitbake/bin/bitbake
+++ b/bitbake/bin/bitbake
@@ -238,7 +238,6 @@ def main():
238 try: 238 try:
239 configuration.setServerRegIdleCallback(server.getServerIdleCB()) 239 configuration.setServerRegIdleCallback(server.getServerIdleCB())
240 cooker = bb.cooker.BBCooker(configuration) 240 cooker = bb.cooker.BBCooker(configuration)
241 cooker.parseCommandLine()
242 241
243 server.addcooker(cooker) 242 server.addcooker(cooker)
244 server.saveConnectionDetails() 243 server.saveConnectionDetails()
@@ -272,7 +271,7 @@ def main():
272 os.environ[k] = cleanedvars[k] 271 os.environ[k] = cleanedvars[k]
273 272
274 try: 273 try:
275 return server.launchUI(ui_main, server_connection.connection, server_connection.events) 274 return server.launchUI(ui_main, server_connection.connection, server_connection.events, configParams)
276 finally: 275 finally:
277 bb.event.ui_queue = [] 276 bb.event.ui_queue = []
278 server_connection.terminate() 277 server_connection.terminate()