diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-09-19 16:20:28 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-09-23 13:52:08 +0100 |
commit | fb69823486e49561fbe4406c4c158cb7df081a93 (patch) | |
tree | 9c93ca16da1e31f7053c2001d5882d63edb0fb80 | |
parent | 1d394c64f51a885f8318f1d62d2a0aeab40233d2 (diff) | |
download | poky-fb69823486e49561fbe4406c4c158cb7df081a93.tar.gz |
sstate: Avoid deploy_source_date_epoch sstate when unneeded
This sstate task is only needed when depended upon, it can be skipped
if there are no tasks running that directly depend upon it.
This reduced the number of sstate tasks in something like an image
build.
(From OE-Core rev: 601cee016da5c7505915e26641a085714de175ce)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/sstate.bbclass | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass index 498dfc681c..5accc13a89 100644 --- a/meta/classes/sstate.bbclass +++ b/meta/classes/sstate.bbclass | |||
@@ -1066,6 +1066,10 @@ def setscene_depvalid(task, taskdependees, notneeded, d, log=None): | |||
1066 | if taskdependees[task][1] == "do_populate_lic": | 1066 | if taskdependees[task][1] == "do_populate_lic": |
1067 | return True | 1067 | return True |
1068 | 1068 | ||
1069 | # We only need to trigger deploy_source_date_epoch through direct dependencies | ||
1070 | if taskdependees[task][1] == "do_deploy_source_date_epoch": | ||
1071 | return True | ||
1072 | |||
1069 | # stash_locale and gcc_stash_builddir are never needed as a dependency for built objects | 1073 | # stash_locale and gcc_stash_builddir are never needed as a dependency for built objects |
1070 | if taskdependees[task][1] == "do_stash_locale" or taskdependees[task][1] == "do_gcc_stash_builddir": | 1074 | if taskdependees[task][1] == "do_stash_locale" or taskdependees[task][1] == "do_gcc_stash_builddir": |
1071 | return True | 1075 | return True |