diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-06-20 16:48:23 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-06-21 09:19:27 +0100 |
commit | 17b1507c02c551f6adddb14aca23b309036a601e (patch) | |
tree | d662f2420d6f6a3b9eeb7a82f588b951626596dd | |
parent | ed4a919cae7b1e03d0cb83636ce88f50a3ca1d16 (diff) | |
download | poky-17b1507c02c551f6adddb14aca23b309036a601e.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 rev: bdce39f22a0e8c8e1cf237322657220e4201077d)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/base.bbclass | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 3a0ff6bd63..27edea8af9 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
@@ -309,13 +309,15 @@ python base_eventhandler() { | |||
309 | oe.utils.features_backfill("MACHINE_FEATURES", e.data) | 309 | oe.utils.features_backfill("MACHINE_FEATURES", e.data) |
310 | 310 | ||
311 | if isinstance(e, bb.event.BuildStarted): | 311 | if isinstance(e, bb.event.BuildStarted): |
312 | localdata = bb.data.createCopy(e.data) | ||
313 | bb.data.update_data(localdata) | ||
312 | statuslines = [] | 314 | statuslines = [] |
313 | for func in oe.data.typed_value('BUILDCFG_FUNCS', e.data): | 315 | for func in oe.data.typed_value('BUILDCFG_FUNCS', localdata): |
314 | g = globals() | 316 | g = globals() |
315 | if func not in g: | 317 | if func not in g: |
316 | bb.warn("Build configuration function '%s' does not exist" % func) | 318 | bb.warn("Build configuration function '%s' does not exist" % func) |
317 | else: | 319 | else: |
318 | flines = g[func](e.data) | 320 | flines = g[func](localdata) |
319 | if flines: | 321 | if flines: |
320 | statuslines.extend(flines) | 322 | statuslines.extend(flines) |
321 | 323 | ||