diff options
author | Jose Quaresma <quaresma.jose@gmail.com> | 2022-11-11 18:05:45 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-12-01 19:35:05 +0000 |
commit | 39f3e183c1eb49c482b8631b2770d6f7dffa0fb3 (patch) | |
tree | d963063d0701ed1fdfeb883a19fd098df2e67192 /meta/lib | |
parent | a5ce03a1621e7dd6cf9b3c194f2d0a43f79ad2f0 (diff) | |
download | poky-39f3e183c1eb49c482b8631b2770d6f7dffa0fb3.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: ad52bb4643eb8063ff4db6bcb86b9a593ad6ce7d)
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>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oe/sstatesig.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py index de65244932..f5a77bea27 100644 --- a/meta/lib/oe/sstatesig.py +++ b/meta/lib/oe/sstatesig.py | |||
@@ -30,6 +30,12 @@ def sstate_rundepfilter(siggen, fn, recipename, task, dep, depname, dataCaches): | |||
30 | depmc, _, deptaskname, depmcfn = bb.runqueue.split_tid_mcfn(dep) | 30 | depmc, _, deptaskname, depmcfn = bb.runqueue.split_tid_mcfn(dep) |
31 | mc, _ = bb.runqueue.split_mc(fn) | 31 | mc, _ = bb.runqueue.split_mc(fn) |
32 | 32 | ||
33 | # We can skip the rm_work task signature to avoid running the task | ||
34 | # when we remove some tasks from the dependencie chain | ||
35 | # i.e INHERIT:remove = "create-spdx" will trigger the do_rm_work | ||
36 | if task == "do_rm_work": | ||
37 | return False | ||
38 | |||
33 | # Keep all dependencies between SPDX tasks in the signature. SPDX documents | 39 | # Keep all dependencies between SPDX tasks in the signature. SPDX documents |
34 | # are linked together by hashes, which means if a dependent document changes, | 40 | # are linked together by hashes, which means if a dependent document changes, |
35 | # all downstream documents must be re-written (even if they are "safe" | 41 | # all downstream documents must be re-written (even if they are "safe" |