From: Alexandru DAMIAN Date: Fri, 1 Nov 2013 15:58:29 +0000 (+0000) Subject: bitbake: cooker: add data to the dependency tree dump X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a670859103dab0b28e52a4d91f476d2bccbc85ac;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git bitbake: cooker: add data to the dependency tree dump Toaster needes to record extra data that needs to be moved at the time of the dependency tree dump. This data includes: * layer priorities for recording in the layer section * the inherit list for each PN which allows to determine the type of the PN (regular package, image, etc). This patch adds this data to the dependency tree dump. (Bitbake rev: 7636aba37320aaf9b044d3832ddc21af51ccd69c) Signed-off-by: Alexandru DAMIAN Signed-off-by: Paul Eggleton Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index b504f45da68..ccc6858780b 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py @@ -511,6 +511,7 @@ class BBCooker: depend_tree["packages"] = {} depend_tree["rdepends-pkg"] = {} depend_tree["rrecs-pkg"] = {} + depend_tree["layer-priorities"] = self.recipecache.bbfile_config_priorities for task in xrange(len(rq.rqdata.runq_fnid)): taskname = rq.rqdata.runq_task[task] @@ -522,6 +523,7 @@ class BBCooker: depend_tree["pn"][pn] = {} depend_tree["pn"][pn]["filename"] = fn depend_tree["pn"][pn]["version"] = version + depend_tree["pn"][pn]["inherits"] = self.recipecache.inherits.get(fn, None) # if we have extra caches, list all attributes they bring in extra_info = []