summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/runqueue.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-03-18 17:57:45 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-03-23 22:51:25 +0000
commit86ec266d912b574c2e2f2057c9c438b13c5c5f98 (patch)
tree80081147a8547c9496b45fd562754e3114878e60 /bitbake/lib/bb/runqueue.py
parentab55f8bfec37dac8750c5d55b585332fc3f9b135 (diff)
downloadpoky-86ec266d912b574c2e2f2057c9c438b13c5c5f98.tar.gz
bitbake: runqueue/event: Add an event for notifying of stale setscene tasks
Use the new functionality in build.py to identify stale setscene tasks and send an event to the metadata listing them. The metadata then has the option of performing cleanup operations if it thinks that appropriate. (Bitbake rev: ef8c980a3ae92c168b7ca16a4d19cd38a9574761) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/runqueue.py')
-rw-r--r--bitbake/lib/bb/runqueue.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index 3008b7ad4f..80d7f6ca6b 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -2781,6 +2781,20 @@ def build_scenequeue_data(sqdata, rqdata, rq, cooker, stampcache, sqrq):
2781 2781
2782 update_scenequeue_data(sqdata.sq_revdeps, sqdata, rqdata, rq, cooker, stampcache, sqrq, summary=True) 2782 update_scenequeue_data(sqdata.sq_revdeps, sqdata, rqdata, rq, cooker, stampcache, sqrq, summary=True)
2783 2783
2784 # Compute a list of 'stale' sstate tasks where the current hash does not match the one
2785 # in any stamp files. Pass the list out to metadata as an event.
2786 found = {}
2787 for tid in rqdata.runq_setscene_tids:
2788 (mc, fn, taskname, taskfn) = split_tid_mcfn(tid)
2789 stamps = bb.build.find_stale_stamps(taskname, rqdata.dataCaches[mc], taskfn)
2790 if stamps:
2791 if mc not in found:
2792 found[mc] = {}
2793 found[mc][tid] = stamps
2794 for mc in found:
2795 event = bb.event.StaleSetSceneTasks(found[mc])
2796 bb.event.fire(event, cooker.databuilder.mcdata[mc])
2797
2784def update_scenequeue_data(tids, sqdata, rqdata, rq, cooker, stampcache, sqrq, summary=True): 2798def update_scenequeue_data(tids, sqdata, rqdata, rq, cooker, stampcache, sqrq, summary=True):
2785 2799
2786 tocheck = set() 2800 tocheck = set()