]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
sstatesig: skip the rm_work task signature
authorJose Quaresma <quaresma.jose@gmail.com>
Fri, 11 Nov 2022 18:05:45 +0000 (18:05 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 14 Nov 2022 16:19:39 +0000 (16:19 +0000)
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"

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/lib/oe/sstatesig.py

index fad10af539843d0eadcc7cad41fb5374b5542ca2..aa273df970d387754c3df9e7fabb85064567ea3c 100644 (file)
@@ -32,6 +32,12 @@ def sstate_rundepfilter(siggen, fn, recipename, task, dep, depname, dataCaches):
     depmc, _, deptaskname, depmcfn = bb.runqueue.split_tid_mcfn(dep)
     mc, _ = bb.runqueue.split_mc(fn)
 
+    # We can skip the rm_work task signature to avoid running the task
+    # when we remove some tasks from the dependencie chain
+    # i.e INHERIT:remove = "create-spdx" will trigger the do_rm_work
+    if task == "do_rm_work":
+        return False
+
     # Keep all dependencies between SPDX tasks in the signature. SPDX documents
     # are linked together by hashes, which means if a dependent document changes,
     # all downstream documents must be re-written (even if they are "safe"