summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cookerdata.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-09-23 12:58:22 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-09-23 20:06:06 +0100
commitff5fba8462151364a3834453ee5c861f471cf8d3 (patch)
tree93b87a7e998c36e368802e77b8f070f7d85758eb /bitbake/lib/bb/cookerdata.py
parentb98bd94e2afa33ecc9861eea046fa7bd386b07c3 (diff)
downloadpoky-ff5fba8462151364a3834453ee5c861f471cf8d3.tar.gz
bitbake: knotty: Ensure commandline parameters are updated in memres server
When using options like -k, -f, -v and so on with the memory resident server, they'd currently only be set on the initial values passed to the original command. This ensures they now match those specified on the commandline for the options where this makes sense. To make this work, a command to update the options on the server side is required so this is added. [YOCTO #5292] (Bitbake rev: 1c75cc4d0c8b606c1fe76e6bf60bf6a32298b105) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cookerdata.py')
-rw-r--r--bitbake/lib/bb/cookerdata.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cookerdata.py b/bitbake/lib/bb/cookerdata.py
index 60a6d516af..470d5381ae 100644
--- a/bitbake/lib/bb/cookerdata.py
+++ b/bitbake/lib/bb/cookerdata.py
@@ -69,6 +69,17 @@ class ConfigParameters(object):
69 if bbpkgs: 69 if bbpkgs:
70 self.options.pkgs_to_build.extend(bbpkgs.split()) 70 self.options.pkgs_to_build.extend(bbpkgs.split())
71 71
72 def updateToServer(self, server):
73 options = {}
74 for o in ["abort", "tryaltconfigs", "force", "invalidate_stamp",
75 "verbose", "debug", "dry_run", "dump_signatures",
76 "debug_domains", "extra_assume_provided", "profile"]:
77 options[o] = getattr(self.options, o)
78
79 ret, error = server.runCommand(["updateConfig", options])
80 if error:
81 raise Exception("Unable to update the server configuration with local parameters: %s" % error)
82
72 def parseActions(self): 83 def parseActions(self):
73 # Parse any commandline into actions 84 # Parse any commandline into actions
74 action = {'action':None, 'msg':None} 85 action = {'action':None, 'msg':None}