summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/hoblistmodel.py
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2012-04-01 20:14:15 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-05 14:00:26 +0100
commit7b560745f23d862cc3e48748b56bc8ce4ce84f72 (patch)
tree6aa70efa8f99e1a98dee11ebecb93eeea5e9a8c7 /bitbake/lib/bb/ui/crumbs/hoblistmodel.py
parentf414dbbaa02de33efacf80802aa0370aad41cfa9 (diff)
downloadpoky-7b560745f23d862cc3e48748b56bc8ce4ce84f72.tar.gz
Hob: Fix toolchain build
Originally we added -dev and -dbg postfixes to our selected packages as toolchain packages. However, some package names are modified in recipes, so we could not rely on its base name. The new approach is to detect if a package is selected, then include those packages under the same recipe endswith "-dev" and "-dbg". This fixes [YOCTO #2185] (Bitbake rev: f99c66071bce63780301e1639d74316503ca934c) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/hoblistmodel.py')
-rw-r--r--bitbake/lib/bb/ui/crumbs/hoblistmodel.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hoblistmodel.py b/bitbake/lib/bb/ui/crumbs/hoblistmodel.py
index a09c7c726e..d4cae43892 100644
--- a/bitbake/lib/bb/ui/crumbs/hoblistmodel.py
+++ b/bitbake/lib/bb/ui/crumbs/hoblistmodel.py
@@ -357,6 +357,22 @@ class PackageListModel(gtk.TreeStore):
357 357
358 return packagelist 358 return packagelist
359 359
360 def get_selected_packages_toolchain(self):
361 packagelist = []
362
363 it = self.get_iter_first()
364 while it:
365 if self.get_value(it, self.COL_INC):
366 child_it = self.iter_children(it)
367 while child_it:
368 name = self.get_value(child_it, self.COL_NAME)
369 inc = self.get_value(child_it, self.COL_INC)
370 if inc or name.endswith("-dev") or name.endswith("-dbg"):
371 packagelist.append(name)
372 child_it = self.iter_next(child_it)
373 it = self.iter_next(it)
374
375 return packagelist
360 """ 376 """
361 Return the selected package size, unit is KB. 377 Return the selected package size, unit is KB.
362 """ 378 """