summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-06-20 16:48:23 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-07-09 10:53:53 +0100
commitc1ea152c08cea947173a61937689a22791f7b4b5 (patch)
tree91b573fd6f9246ef8a7641e64c2d6fab2498b1b0
parent616cda690e0b8e50a34428d52ccfb917c68fc55d (diff)
downloadpoky-c1ea152c08cea947173a61937689a22791f7b4b5.tar.gz
base.bbclass: Ensure finalised data is displayed in build banner
The build banner displayed at the start of builds can be misleading since the data store has not been finalised. As easy way to illustrate this is to use something like: DEFAULTTUNE = "i586" DEFAULTTUNE_<machineoverride> = "core2" and the banner will display the i586 tune yet the core2 tune will be used. We can avoid this if we finalise a copy of the data before displaying it. [YOCTO #4225] (From OE-Core master rev: bdce39f22a0e8c8e1cf237322657220e4201077d) (From OE-Core rev: 3f6c1307e1ad2d3ca3fd53bfb7f2a5eac31bee33) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/base.bbclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 641316d1fa..1ca7d663d7 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -308,13 +308,15 @@ python base_eventhandler() {
308 oe.utils.features_backfill("MACHINE_FEATURES", e.data) 308 oe.utils.features_backfill("MACHINE_FEATURES", e.data)
309 309
310 if isinstance(e, bb.event.BuildStarted): 310 if isinstance(e, bb.event.BuildStarted):
311 localdata = bb.data.createCopy(e.data)
312 bb.data.update_data(localdata)
311 statuslines = [] 313 statuslines = []
312 for func in oe.data.typed_value('BUILDCFG_FUNCS', e.data): 314 for func in oe.data.typed_value('BUILDCFG_FUNCS', localdata):
313 g = globals() 315 g = globals()
314 if func not in g: 316 if func not in g:
315 bb.warn("Build configuration function '%s' does not exist" % func) 317 bb.warn("Build configuration function '%s' does not exist" % func)
316 else: 318 else:
317 flines = g[func](e.data) 319 flines = g[func](localdata)
318 if flines: 320 if flines:
319 statuslines.extend(flines) 321 statuslines.extend(flines)
320 322