From b6817986df45c4064fdd311aa4f5152b4462b18a Mon Sep 17 00:00:00 2001 From: Dongxiao Xu Date: Wed, 21 Mar 2012 16:27:25 +0800 Subject: Hob: Use inherit information to judge if a recipe is image type Previously we use pattern "-image-" to match recipe name to judge if it is image type. This will ignore some images whose name doesn't match the pattern. The new method is to use the inherit information, that is, if a recipe inherits image.bbclass, we treat it as an image. (From Poky rev: 981b81bd39529d2ba9af0d4e2a25bda3d32bd8fc) (Bitbake rev: bdbee0c899e115ad08b9a77d3e58d6767766da75) Signed-off-by: Dongxiao Xu Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/hoblistmodel.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'bitbake/lib/bb/ui/crumbs/hoblistmodel.py') diff --git a/bitbake/lib/bb/ui/crumbs/hoblistmodel.py b/bitbake/lib/bb/ui/crumbs/hoblistmodel.py index 61f2911f89..bfd49bd24d 100644 --- a/bitbake/lib/bb/ui/crumbs/hoblistmodel.py +++ b/bitbake/lib/bb/ui/crumbs/hoblistmodel.py @@ -528,6 +528,7 @@ class RecipeListModel(gtk.ListStore): desc = event_model["pn"][item]["description"] lic = event_model["pn"][item]["license"] group = event_model["pn"][item]["section"] + inherits = event_model["pn"][item]["inherits"] install = [] depends = event_model["depends"].get(item, []) + event_model["rdepends-pn"].get(item, []) @@ -537,9 +538,10 @@ class RecipeListModel(gtk.ListStore): atype = 'mltask' else: atype = 'task' - elif ('-image-' in name): - atype = 'image' - install = event_model["rdepends-pkg"].get(item, []) + event_model["rrecs-pkg"].get(item, []) + elif ('image.bbclass' in " ".join(inherits)): + if name != "hob-image": + atype = 'image' + install = event_model["rdepends-pkg"].get(item, []) + event_model["rrecs-pkg"].get(item, []) elif ('meta-' in name): atype = 'toolchain' elif (name == 'dummy-image' or name == 'dummy-toolchain'): -- cgit v1.2.3-54-g00ecf