1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-08 05:09:24 +00:00

bitbake: cooker: Ensure BB_ORIGENV is updated by changes to configuration.env

Changes to configuration.env were not updating BB_ORIGENV, fix this.

(Bitbake rev: c5fbd8452f87e0a2d234eaf27d0450aacdeb8891)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2020-08-24 17:42:20 +01:00
parent b9bbb5c7b7
commit 4dd9ebd948
+6
View File
@@ -458,6 +458,12 @@ class BBCooker:
bb.msg.loggerDefaultLogLevel = self.configuration.default_loglevel
bb.msg.loggerDefaultDomains = self.configuration.debug_domains
if hasattr(self, "data"):
origenv = bb.data.init()
for k in environment:
origenv.setVar(k, environment[k])
self.data.setVar("BB_ORIGENV", origenv)
for k in bb.utils.approved_variables():
if k in environment and k not in self.configuration.env:
logger.debug(1, "Updating new environment variable %s to %s" % (k, environment[k]))