summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJose Quaresma <quaresma.jose@gmail.com>2022-11-11 18:05:45 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-12-01 19:35:11 +0000
commit2dced4685251046e1764a41e2fb24167b0ae643e (patch)
treeae3cae19c079c6e00be9c8a76b171b85d15076d0
parentaf79d91a5032c1e0ce4315c19533b865da8dc636 (diff)
downloadpoky-2dced4685251046e1764a41e2fb24167b0ae643e.tar.gz
sstatesig: skip the rm_work task signature
We can skip the rm_work task signature to avoid running the task when we remove some tasks from the dependencie chain. The inject_rm_work handler on the rm_work bbclass triggers the rm_work task running for any signature change in the dependencie chain of the task do_build of each recipe. i.e INHERIT:remove = "create-spdx" will trigger the do_rm_work when we collect the sstate cache with INHERIT = "create-spdx" (From OE-Core rev: f1f8f894048b325ce9a8af03b1c3b1c5a9c1f983) Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> (cherry picked from commit 292305700e39d0ebd64763f5032c39ace5005fad) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oe/sstatesig.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py
index fad10af539..aa273df970 100644
--- a/meta/lib/oe/sstatesig.py
+++ b/meta/lib/oe/sstatesig.py
@@ -32,6 +32,12 @@ def sstate_rundepfilter(siggen, fn, recipename, task, dep, depname, dataCaches):
32 depmc, _, deptaskname, depmcfn = bb.runqueue.split_tid_mcfn(dep) 32 depmc, _, deptaskname, depmcfn = bb.runqueue.split_tid_mcfn(dep)
33 mc, _ = bb.runqueue.split_mc(fn) 33 mc, _ = bb.runqueue.split_mc(fn)
34 34
35 # We can skip the rm_work task signature to avoid running the task
36 # when we remove some tasks from the dependencie chain
37 # i.e INHERIT:remove = "create-spdx" will trigger the do_rm_work
38 if task == "do_rm_work":
39 return False
40
35 # Keep all dependencies between SPDX tasks in the signature. SPDX documents 41 # Keep all dependencies between SPDX tasks in the signature. SPDX documents
36 # are linked together by hashes, which means if a dependent document changes, 42 # are linked together by hashes, which means if a dependent document changes,
37 # all downstream documents must be re-written (even if they are "safe" 43 # all downstream documents must be re-written (even if they are "safe"