summaryrefslogtreecommitdiffstats
path: root/meta/classes/sstate.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2019-07-12 13:54:19 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-07-15 09:26:46 +0100
commit227125b96ad6fb0cf6e259e787d83415993db847 (patch)
tree34db082662c8dbb07908a0e17e95afb9f4f87b91 /meta/classes/sstate.bbclass
parent2d858c6ea0ebf5f79bb8c310f94082067593882d (diff)
downloadopenembedded-core-227125b96ad6fb0cf6e259e787d83415993db847.tar.gz
sstate: Add tweak to avoid multiple sstate stats messages
After the recent changes in bitbake to runqueue, we need to recheck sstate validity, particularly in multiconfig builds where tasks have the same checksum. Avoid printing summary messages in this case. Also avoid multiple events to toaster which may not be expecting that at later points in the code. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/sstate.bbclass')
-rw-r--r--meta/classes/sstate.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 424acfb155..b604729d84 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -927,6 +927,10 @@ def sstate_checkhashes(sq_fn, sq_task, sq_hash, sq_hashfn, d, siginfo=False, *,
bb.event.fire(bb.event.ProcessFinished(msg), d)
+ # Likely checking an individual task hash again for multiconfig sharing of sstate tasks so skip reporting
+ if len(sq_fn) == 1:
+ return ret
+
inheritlist = d.getVar("INHERIT")
if "toaster" in inheritlist:
evdata = {'missed': [], 'found': []};