From: Richard Purdie Date: Mon, 18 Jan 2016 17:57:01 +0000 (+0000) Subject: sstate: Add packagedata to list of tasks not to recurse X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~27619 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76aa4f49db7d32bbd35703c64470fdfc63f403a4;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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. Signed-off-by: Richard Purdie --- diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass index 9bef2125218..804629199ff 100644 --- a/meta/classes/sstate.bbclass +++ b/meta/classes/sstate.bbclass @@ -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: