]> code.ossystems Code Review - openembedded-core.git/commitdiff
sstate: Avoid deploy_source_date_epoch sstate when unneeded
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 19 Sep 2021 15:20:28 +0000 (16:20 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 23 Sep 2021 12:52:04 +0000 (13:52 +0100)
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 <richard.purdie@linuxfoundation.org>
meta/classes/sstate.bbclass

index 498dfc681cf83835e3a1ea1408735d5a9608e158..5accc13a89b4a2c7a70783f86de5af1a1c98a9b2 100644 (file)
@@ -1066,6 +1066,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