summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-09-19 16:20:28 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-11-15 11:53:55 +0000
commit116b22a1ce02aa00a5783b5c3a4ce3e212f5ba20 (patch)
tree4b737e955e1bb3ef186b1dcc2750d0a72c509d5c
parent54560698c63c14814b8e22bd0f9e094106561a02 (diff)
downloadpoky-116b22a1ce02aa00a5783b5c3a4ce3e212f5ba20.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: 884e44701ada57abe4d8ad9ece424435be25c6a5) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 601cee016da5c7505915e26641a085714de175ce) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/sstate.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 50d44398f9..c2720cde92 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -1060,6 +1060,10 @@ def setscene_depvalid(task, taskdependees, notneeded, d, log=None):
1060 if taskdependees[task][1] == "do_populate_lic": 1060 if taskdependees[task][1] == "do_populate_lic":
1061 return True 1061 return True
1062 1062
1063 # We only need to trigger deploy_source_date_epoch through direct dependencies
1064 if taskdependees[task][1] == "do_deploy_source_date_epoch":
1065 return True
1066
1063 # stash_locale and gcc_stash_builddir are never needed as a dependency for built objects 1067 # stash_locale and gcc_stash_builddir are never needed as a dependency for built objects
1064 if taskdependees[task][1] == "do_stash_locale" or taskdependees[task][1] == "do_gcc_stash_builddir": 1068 if taskdependees[task][1] == "do_stash_locale" or taskdependees[task][1] == "do_gcc_stash_builddir":
1065 return True 1069 return True