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-08 23:03:48 +0000 |
commit | d3e07368549f30265f59846a260efa8230a225ca (patch) | |
tree | d88bdddc05cefbd802524894222d49eca8ad9c45 /lib/bb/cooker.py | |
parent | df5a1392d6f91ccb44a99721c7d847da242121bb (diff) | |
download | openembedded-core-contrib-d3e07368549f30265f59846a260efa8230a225ca.tar.gz |
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.
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 'lib/bb/cooker.py')
-rw-r--r-- | lib/bb/cooker.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py index 81d4dd1886..74190ec9a7 100644 --- a/lib/bb/cooker.py +++ b/lib/bb/cooker.py @@ -725,8 +725,15 @@ class BBCooker: depend_tree["packages"] = {} depend_tree["rdepends-pkg"] = {} depend_tree["rrecs-pkg"] = {} + depend_tree['providermap'] = {} depend_tree["layer-priorities"] = self.recipecache.bbfile_config_priorities + for name, fn in taskdata.get_providermap().iteritems(): + pn = self.recipecache.pkg_fn[fn] + if name != pn: + version = "%s:%s-%s" % self.recipecache.pkg_pepvpr[fn] + depend_tree['providermap'][name] = (pn, version) + for task in xrange(len(rq.rqdata.runq_fnid)): taskname = rq.rqdata.runq_task[task] fnid = rq.rqdata.runq_fnid[task] |