diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-01-08 11:17:16 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-11 23:26:32 +0000 |
commit | f2b7252190ed646fe8d28a436328970431eb8d9c (patch) | |
tree | d6ef1b21b2030aaf7549967e85e4b819df8914f5 /bitbake/lib | |
parent | 7e380d460c25ba5cb6c9e75e39e7cd1b8719f412 (diff) | |
download | poky-f2b7252190ed646fe8d28a436328970431eb8d9c.tar.gz |
bitbake: cooker: add providermap to dep_tree
Added providermap information to the result of buildDependTree API.
This will be used by Toaster to map virtual dependencies to recipes.
(Bitbake rev: d3e07368549f30265f59846a260efa8230a225ca)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 81d4dd1886..74190ec9a7 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -725,8 +725,15 @@ class BBCooker: | |||
725 | depend_tree["packages"] = {} | 725 | depend_tree["packages"] = {} |
726 | depend_tree["rdepends-pkg"] = {} | 726 | depend_tree["rdepends-pkg"] = {} |
727 | depend_tree["rrecs-pkg"] = {} | 727 | depend_tree["rrecs-pkg"] = {} |
728 | depend_tree['providermap'] = {} | ||
728 | depend_tree["layer-priorities"] = self.recipecache.bbfile_config_priorities | 729 | depend_tree["layer-priorities"] = self.recipecache.bbfile_config_priorities |
729 | 730 | ||
731 | for name, fn in taskdata.get_providermap().iteritems(): | ||
732 | pn = self.recipecache.pkg_fn[fn] | ||
733 | if name != pn: | ||
734 | version = "%s:%s-%s" % self.recipecache.pkg_pepvpr[fn] | ||
735 | depend_tree['providermap'][name] = (pn, version) | ||
736 | |||
730 | for task in xrange(len(rq.rqdata.runq_fnid)): | 737 | for task in xrange(len(rq.rqdata.runq_fnid)): |
731 | taskname = rq.rqdata.runq_task[task] | 738 | taskname = rq.rqdata.runq_task[task] |
732 | fnid = rq.rqdata.runq_fnid[task] | 739 | fnid = rq.rqdata.runq_fnid[task] |