summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-03-02 18:17:05 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-03-04 11:35:42 +0000
commitc2381e3a69ecff28d19beb18f4a0037a6ba40352 (patch)
tree6a1a70fda6da8db9044f64ee8cd1e38e4cc0a31e /bitbake
parent20a93757a3c9d7d61eec209577ed3bfb03543198 (diff)
downloadpoky-c2381e3a69ecff28d19beb18f4a0037a6ba40352.tar.gz
bitbake: cooker: Run registered anonymous python before displaying environment
The output of bitbake -e can differ from what actually is used due to anonymous python making changes to the data store. Execute any anonymous python added in the base configuration to make things more consistent. (Bitbake rev: bcdc2f73e3b4a10b1e479c2891f251d9507a9e30) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/cooker.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index af482f9d62..d1df711d40 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -530,13 +530,15 @@ class BBCooker:
530 self.data.inchistory.emit(env) 530 self.data.inchistory.emit(env)
531 logger.plain(env.getvalue()) 531 logger.plain(env.getvalue())
532 532
533 data.expandKeys(envdata)
534 parse.ast.runAnonFuncs(envdata)
535
533 # emit variables and shell functions 536 # emit variables and shell functions
534 with closing(StringIO()) as env: 537 with closing(StringIO()) as env:
535 data.emit_env(env, envdata, True) 538 data.emit_env(env, envdata, True)
536 logger.plain(env.getvalue()) 539 logger.plain(env.getvalue())
537 540
538 # emit the metadata which isnt valid shell 541 # emit the metadata which isnt valid shell
539 data.expandKeys(envdata)
540 for e in sorted(envdata.keys()): 542 for e in sorted(envdata.keys()):
541 if envdata.getVarFlag(e, 'func', False) and envdata.getVarFlag(e, 'python', False): 543 if envdata.getVarFlag(e, 'func', False) and envdata.getVarFlag(e, 'python', False):
542 logger.plain("\npython %s () {\n%s}\n", e, envdata.getVar(e, False)) 544 logger.plain("\npython %s () {\n%s}\n", e, envdata.getVar(e, False))