Skip to contentSkip to conversation

sstate: Add packagedata to list of tasks not to recurse

PATCH New Richard Purdie 1 participant 1 message Jan 18, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sstate: Add packagedata to list of tasks not to recurse

If we "bitbake X -c packagedata" and the packagedata comes from sstate, we don't need any of the tasks dependencies. This is similar to the populate_lic case, we only care about the end result.

Therefore short circuit the dependencies so packagedata doesn't pull in any other dependencies.

meta/classes/sstate.bbclass +4 -0
index d9adf01..7d65f4a 100644
@@ -854,6 +854,10 @@ def setscene_depvalid(task, taskdependees, notneeded, d):
     if taskdependees[task][1] == "do_populate_lic":
         return True
 
+    # We only need to trigger packagedata through direct dependencies
+    if taskdependees[task][1] == "do_packagedata":
+        return True
+
     for dep in taskdependees:
         bb.debug(2, "  considering dependency: %s" % (str(taskdependees[dep])))
         if task == dep:
Signature · 1 line
cgit v0.10.2