[bitbake-devel] [PATCH 16/17] cooker: add inherit information when generating package tree
Dongxiao Xu
dongxiao.xu at intel.com
Wed Mar 21 12:55:20 UTC 2012
Inherit information could be used to judge if a recipe is image type
or not.
Signed-off-by: Dongxiao Xu <dongxiao.xu at intel.com>
---
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)
--
1.7.4.1
More information about the bitbake-devel
mailing list