base.bbclass: Ensure finalised data is displayed in build banner

Submitted by Richard Purdie on June 20, 2013, 3:48 p.m. | Patch ID: 52143


Message ID 1371743303.20823.241.camel@ted
State Accepted
Commit bdce39f22a0e8c8e1cf237322657220e4201077d
Headers show

Commit Message

Richard Purdie June 20, 2013, 3:48 p.m.
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_<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 <>

Patch hide | download patch | download mbox

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() {
     if isinstance(e, bb.event.BuildStarted):
+        localdata =
         statuslines = []
-        for func in'BUILDCFG_FUNCS',
+        for func in'BUILDCFG_FUNCS', localdata):
             g = globals()
             if func not in g:
                 bb.warn("Build configuration function '%s' does not exist" % func)
-                flines = g[func](
+                flines = g[func](localdata)
                 if flines: