summaryrefslogtreecommitdiffstats
path: root/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-21 00:05:44 +0100
commit2dbbb1d51dafd4451fef8fe16f095bcd4b8f1177 (patch)
tree5844419d58be603ed648880f4113827158bfb02b /bin
parent35bd5997e8d8e74bc36019030cc10c560a8134f9 (diff)
downloadbitbake-2dbbb1d51dafd4451fef8fe16f095bcd4b8f1177.tar.gz
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. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/bitbake3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/bitbake b/bin/bitbake
index 7087d2d94..c87e5b398 100755
--- a/bin/bitbake
+++ b/bin/bitbake
@@ -238,7 +238,6 @@ def main():
try:
configuration.setServerRegIdleCallback(server.getServerIdleCB())
cooker = bb.cooker.BBCooker(configuration)
- cooker.parseCommandLine()
server.addcooker(cooker)
server.saveConnectionDetails()
@@ -272,7 +271,7 @@ def main():
os.environ[k] = cleanedvars[k]
try:
- return server.launchUI(ui_main, server_connection.connection, server_connection.events)
+ return server.launchUI(ui_main, server_connection.connection, server_connection.events, configParams)
finally:
bb.event.ui_queue = []
server_connection.terminate()