* [PATCH] base.bbclass: Ensure finalised data is displayed in build banner
@ 2013-06-20 15:48 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2013-06-20 15:48 UTC (permalink / raw)
To: openembedded-core
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]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 5e6ed1d..97b2a26 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -309,13 +309,15 @@ python base_eventhandler() {
oe.utils.features_backfill("MACHINE_FEATURES", e.data)
if isinstance(e, bb.event.BuildStarted):
+ localdata = bb.data.createCopy(e.data)
+ bb.data.update_data(localdata)
statuslines = []
- for func in oe.data.typed_value('BUILDCFG_FUNCS', e.data):
+ for func in oe.data.typed_value('BUILDCFG_FUNCS', localdata):
g = globals()
if func not in g:
bb.warn("Build configuration function '%s' does not exist" % func)
else:
- flines = g[func](e.data)
+ flines = g[func](localdata)
if flines:
statuslines.extend(flines)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-06-20 15:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-20 15:48 [PATCH] base.bbclass: Ensure finalised data is displayed in build banner Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox