summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/sstatesig.py
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-11-14 16:19:43 +0000
commit6cd9a85d2b9f6272c0b0e9d68c6dbd5e8c0c336b (patch)
treebed73de58a62b1f5f5e7de8da27448f507f3ffcc /meta/lib/oe/sstatesig.py
parentcdd35d07a289637f33c5cb503feac51389c6fee0 (diff)
downloadpoky-6cd9a85d2b9f6272c0b0e9d68c6dbd5e8c0c336b.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: 292305700e39d0ebd64763f5032c39ace5005fad) Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/sstatesig.py')
-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"