diff options
| -rw-r--r-- | bitbake/lib/bb/cooker.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 99605e5844..754303813b 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
| @@ -458,6 +458,12 @@ class BBCooker: | |||
| 458 | bb.msg.loggerDefaultLogLevel = self.configuration.default_loglevel | 458 | bb.msg.loggerDefaultLogLevel = self.configuration.default_loglevel |
| 459 | bb.msg.loggerDefaultDomains = self.configuration.debug_domains | 459 | bb.msg.loggerDefaultDomains = self.configuration.debug_domains |
| 460 | 460 | ||
| 461 | if hasattr(self, "data"): | ||
| 462 | origenv = bb.data.init() | ||
| 463 | for k in environment: | ||
| 464 | origenv.setVar(k, environment[k]) | ||
| 465 | self.data.setVar("BB_ORIGENV", origenv) | ||
| 466 | |||
| 461 | for k in bb.utils.approved_variables(): | 467 | for k in bb.utils.approved_variables(): |
| 462 | if k in environment and k not in self.configuration.env: | 468 | if k in environment and k not in self.configuration.env: |
| 463 | logger.debug(1, "Updating new environment variable %s to %s" % (k, environment[k])) | 469 | logger.debug(1, "Updating new environment variable %s to %s" % (k, environment[k])) |
