summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cooker.py
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2012-03-21 16:27:10 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-22 14:40:40 +0000
commitef2e881c1bac6d54943f92da520faaaed6bef3bf (patch)
tree48ddc4dec0857a366f4c200ce5b219fe8e683b26 /bitbake/lib/bb/cooker.py
parentc70e761362737c68fda13f10704fba95ab6f258a (diff)
downloadpoky-ef2e881c1bac6d54943f92da520faaaed6bef3bf.tar.gz
cooker: add inherit information when generating package tree
Inherit information could be used to judge if a recipe is image type or not. (From Poky rev: 203f112a84b3971dc71da3dc455fd054d1c16a12) (Bitbake rev: fe52af99918f61abec8f779efb02926b713f2aac) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r--bitbake/lib/bb/cooker.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 97dd3063a9..75c77b7112 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -471,6 +471,7 @@ class BBCooker:
471 description = self.status.description[fn] 471 description = self.status.description[fn]
472 rdepends = self.status.rundeps[fn] 472 rdepends = self.status.rundeps[fn]
473 rrecs = self.status.runrecs[fn] 473 rrecs = self.status.runrecs[fn]
474 inherits = self.status.inherits.get(fn, None)
474 if pn not in depend_tree["pn"]: 475 if pn not in depend_tree["pn"]:
475 depend_tree["pn"][pn] = {} 476 depend_tree["pn"][pn] = {}
476 depend_tree["pn"][pn]["filename"] = fn 477 depend_tree["pn"][pn]["filename"] = fn
@@ -479,6 +480,7 @@ class BBCooker:
479 depend_tree["pn"][pn]["license"] = lic 480 depend_tree["pn"][pn]["license"] = lic
480 depend_tree["pn"][pn]["section"] = section 481 depend_tree["pn"][pn]["section"] = section
481 depend_tree["pn"][pn]["description"] = description 482 depend_tree["pn"][pn]["description"] = description
483 depend_tree["pn"][pn]["inherits"] = inherits
482 484
483 if fnid not in seen_fnids: 485 if fnid not in seen_fnids:
484 seen_fnids.append(fnid) 486 seen_fnids.append(fnid)