mirror of
https://git.yoctoproject.org/poky
synced 2026-04-28 06:32:34 +02:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user