]> code.ossystems Code Review - openembedded-core.git/commitdiff
sstate: Add packagedata to list of tasks not to recurse
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 18 Jan 2016 17:57:01 +0000 (17:57 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 19 Jan 2016 16:35:38 +0000 (16:35 +0000)
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.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/sstate.bbclass

index 9bef2125218e06c13e228175bf3ffb95b88e1f9f..804629199ff1322cab6fed102bdc6b49e0c11047 100644 (file)
@@ -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: