summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cooker.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r--bitbake/lib/bb/cooker.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 1283136b60..45b5a61c46 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
@@ -360,6 +362,8 @@ class BBCooker:
360 if consolelog: 362 if consolelog:
361 self.data.setVar("BB_CONSOLELOG", consolelog) 363 self.data.setVar("BB_CONSOLELOG", consolelog)
362 364
365 self.data.setVar('BB_CMDLINE', self.ui_cmdline)
366
363 # 367 #
364 # Copy of the data store which has been expanded. 368 # Copy of the data store which has been expanded.
365 # Used for firing events and accessing variables where expansion needs to be accounted for 369 # Used for firing events and accessing variables where expansion needs to be accounted for
@@ -539,7 +543,8 @@ class BBCooker:
539 543
540 self.handleCollections(self.data.getVar("BBFILE_COLLECTIONS")) 544 self.handleCollections(self.data.getVar("BBFILE_COLLECTIONS"))
541 545
542 def updateConfigOpts(self, options, environment): 546 def updateConfigOpts(self, options, environment, cmdline):
547 self.ui_cmdline = cmdline
543 clean = True 548 clean = True
544 for o in options: 549 for o in options:
545 if o in ['prefile', 'postfile']: 550 if o in ['prefile', 'postfile']: