[2/2] sstate: Allow optimisation of do_create_spdx task dependencies

Message ID 20220315173310.889973-2-richard.purdie@linuxfoundation.org
State Accepted, archived
Commit 6723a045c3a46537bb76111f8306b5960e532522
Headers show
Series [1/2] create-spdx: Use function rather than AVAILABLE_LICENSES | expand

Commit Message

Richard Purdie March 15, 2022, 5:33 p.m. UTC
do_create_spdx tasks don't need their dependencies so we can optimistion
this as we do for some other tasks.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/classes/sstate.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 163bdf0b5f7..1c0cae48938 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -1084,7 +1084,7 @@  def setscene_depvalid(task, taskdependees, notneeded, d, log=None):
 
     logit("Considering setscene task: %s" % (str(taskdependees[task])), log)
 
-    directtasks = ["do_populate_lic", "do_deploy_source_date_epoch", "do_shared_workdir", "do_stash_locale", "do_gcc_stash_builddir"]
+    directtasks = ["do_populate_lic", "do_deploy_source_date_epoch", "do_shared_workdir", "do_stash_locale", "do_gcc_stash_builddir", "do_create_spdx"]
 
     def isNativeCross(x):
         return x.endswith("-native") or "-cross-" in x or "-crosssdk" in x or x.endswith("-cross")