From patchwork Wed Mar 21 12:55:20 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel, 16/17] cooker: add inherit information when generating package tree Date: Wed, 21 Mar 2012 12:55:20 -0000 From: Dongxiao Xu X-Patchwork-Id: 24009 Message-Id: To: bitbake-devel@lists.openembedded.org Inherit information could be used to judge if a recipe is image type or not. Signed-off-by: Dongxiao Xu --- lib/bb/cooker.py | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py index a000f72..74cda1f 100644 --- a/lib/bb/cooker.py +++ b/lib/bb/cooker.py @@ -471,6 +471,7 @@ class BBCooker: description = self.status.description[fn] rdepends = self.status.rundeps[fn] rrecs = self.status.runrecs[fn] + inherits = self.status.inherits.get(fn, None) if pn not in depend_tree["pn"]: depend_tree["pn"][pn] = {} depend_tree["pn"][pn]["filename"] = fn @@ -479,6 +480,7 @@ class BBCooker: depend_tree["pn"][pn]["license"] = lic depend_tree["pn"][pn]["section"] = section depend_tree["pn"][pn]["description"] = description + depend_tree["pn"][pn]["inherits"] = inherits if fnid not in seen_fnids: seen_fnids.append(fnid)