From: Richard Purdie Date: Sun, 19 Sep 2021 15:20:28 +0000 (+0100) Subject: sstate: Avoid deploy_source_date_epoch sstate when unneeded X-Git-Tag: yocto-3.1.12~4 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=884e44701ada57abe4d8ad9ece424435be25c6a5;p=openembedded-core.git 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. Signed-off-by: Richard Purdie (cherry picked from commit 601cee016da5c7505915e26641a085714de175ce) Signed-off-by: Steve Sakoman --- 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): if taskdependees[task][1] == "do_populate_lic": return True + # We only need to trigger deploy_source_date_epoch through direct dependencies + if taskdependees[task][1] == "do_deploy_source_date_epoch": + return True + # stash_locale and gcc_stash_builddir are never needed as a dependency for built objects if taskdependees[task][1] == "do_stash_locale" or taskdependees[task][1] == "do_gcc_stash_builddir": return True