diff options
| -rw-r--r-- | bitbake/lib/bb/command.py | 3 | ||||
| -rw-r--r-- | bitbake/lib/bb/cooker.py | 7 | ||||
| -rw-r--r-- | bitbake/lib/bb/cookerdata.py | 2 |
3 files changed, 9 insertions, 3 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py index ab51d8e6cd..a919f58d24 100644 --- a/bitbake/lib/bb/command.py +++ b/bitbake/lib/bb/command.py | |||
| @@ -310,7 +310,8 @@ class CommandsSync: | |||
| 310 | def updateConfig(self, command, params): | 310 | def updateConfig(self, command, params): |
| 311 | options = params[0] | 311 | options = params[0] |
| 312 | environment = params[1] | 312 | environment = params[1] |
| 313 | command.cooker.updateConfigOpts(options, environment) | 313 | cmdline = params[2] |
| 314 | command.cooker.updateConfigOpts(options, environment, cmdline) | ||
| 314 | updateConfig.needconfig = False | 315 | updateConfig.needconfig = False |
| 315 | 316 | ||
| 316 | def parseConfiguration(self, command, params): | 317 | def parseConfiguration(self, command, params): |
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 7521ae878c..3c9e88cd24 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
| @@ -192,6 +192,8 @@ class BBCooker: | |||
| 192 | bb.parse.__mtime_cache = {} | 192 | bb.parse.__mtime_cache = {} |
| 193 | bb.parse.BBHandler.cached_statements = {} | 193 | bb.parse.BBHandler.cached_statements = {} |
| 194 | 194 | ||
| 195 | self.ui_cmdline = None | ||
| 196 | |||
| 195 | self.initConfigurationData() | 197 | self.initConfigurationData() |
| 196 | 198 | ||
| 197 | # we log all events to a file if so directed | 199 | # we log all events to a file if so directed |
| @@ -366,6 +368,8 @@ class BBCooker: | |||
| 366 | if consolelog: | 368 | if consolelog: |
| 367 | self.data.setVar("BB_CONSOLELOG", consolelog) | 369 | self.data.setVar("BB_CONSOLELOG", consolelog) |
| 368 | 370 | ||
| 371 | self.data.setVar('BB_CMDLINE', self.ui_cmdline) | ||
| 372 | |||
| 369 | # | 373 | # |
| 370 | # Copy of the data store which has been expanded. | 374 | # Copy of the data store which has been expanded. |
| 371 | # Used for firing events and accessing variables where expansion needs to be accounted for | 375 | # Used for firing events and accessing variables where expansion needs to be accounted for |
| @@ -543,7 +547,8 @@ class BBCooker: | |||
| 543 | 547 | ||
| 544 | self.handleCollections(self.data.getVar("BBFILE_COLLECTIONS")) | 548 | self.handleCollections(self.data.getVar("BBFILE_COLLECTIONS")) |
| 545 | 549 | ||
| 546 | def updateConfigOpts(self, options, environment): | 550 | def updateConfigOpts(self, options, environment, cmdline): |
| 551 | self.ui_cmdline = cmdline | ||
| 547 | clean = True | 552 | clean = True |
| 548 | for o in options: | 553 | for o in options: |
| 549 | if o in ['prefile', 'postfile']: | 554 | if o in ['prefile', 'postfile']: |
diff --git a/bitbake/lib/bb/cookerdata.py b/bitbake/lib/bb/cookerdata.py index 722d860246..e408a35e15 100644 --- a/bitbake/lib/bb/cookerdata.py +++ b/bitbake/lib/bb/cookerdata.py | |||
| @@ -79,7 +79,7 @@ class ConfigParameters(object): | |||
| 79 | "prefile", "postfile"]: | 79 | "prefile", "postfile"]: |
| 80 | options[o] = getattr(self.options, o) | 80 | options[o] = getattr(self.options, o) |
| 81 | 81 | ||
| 82 | ret, error = server.runCommand(["updateConfig", options, environment]) | 82 | ret, error = server.runCommand(["updateConfig", options, environment, sys.argv]) |
| 83 | if error: | 83 | if error: |
| 84 | raise Exception("Unable to update the server configuration with local parameters: %s" % error) | 84 | raise Exception("Unable to update the server configuration with local parameters: %s" % error) |
| 85 | 85 | ||
