diff options
author | Joshua Lock <josh@linux.intel.com> | 2011-07-22 21:47:00 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-25 12:54:16 +0100 |
commit | 9adf01d7be1c2fedfb71975619af60e8af2fe3f2 (patch) | |
tree | 53400442ad225eda2e3ce80544b89100014f13fc /bitbake/lib/bb/ui/hob.py | |
parent | 1f4e6d62f2002faf57c2f273707141d0192dc5cd (diff) | |
download | poky-9adf01d7be1c2fedfb71975619af60e8af2fe3f2.tar.gz |
hob: rework image output type setting
The preferences UI to set the image output type only supported setting a
single value whereas it's common practice, particularly for those making
use of the ADT, to set multiple values. This is also the default in Poky.
This reworked preferences UI dynamically generates check boxes for each
available image type and sets an appropriate string representing all image
types when checkboxes are toggled.
Includes fixes for [YOCTO #1273]
(Bitbake rev: f7f68847dd165f2ad0f39011db4ebfef3ae73f42)
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/hob.py')
-rw-r--r-- | bitbake/lib/bb/ui/hob.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/hob.py b/bitbake/lib/bb/ui/hob.py index 8e3e7bccef..09a63c6717 100644 --- a/bitbake/lib/bb/ui/hob.py +++ b/bitbake/lib/bb/ui/hob.py | |||
@@ -900,7 +900,8 @@ def main (server, eventHandler): | |||
900 | # up to and including the space | 900 | # up to and including the space |
901 | pmake = int(pmake.lstrip("-j ")) | 901 | pmake = int(pmake.lstrip("-j ")) |
902 | 902 | ||
903 | image_types = server.runCommand(["getVariable", "IMAGE_TYPES"]) | 903 | selected_image_types = server.runCommand(["getVariable", "IMAGE_FSTYPES"]) |
904 | all_image_types = server.runCommand(["getVariable", "IMAGE_TYPES"]) | ||
904 | 905 | ||
905 | pclasses = server.runCommand(["getVariable", "PACKAGE_CLASSES"]).split(" ") | 906 | pclasses = server.runCommand(["getVariable", "PACKAGE_CLASSES"]).split(" ") |
906 | # NOTE: we're only supporting one value for PACKAGE_CLASSES being set | 907 | # NOTE: we're only supporting one value for PACKAGE_CLASSES being set |
@@ -909,7 +910,7 @@ def main (server, eventHandler): | |||
909 | pkg, sep, pclass = pclasses[0].rpartition("_") | 910 | pkg, sep, pclass = pclasses[0].rpartition("_") |
910 | 911 | ||
911 | prefs = HobPrefs(configurator, handler, sdk_mach, distro, pclass, cpu_cnt, | 912 | prefs = HobPrefs(configurator, handler, sdk_mach, distro, pclass, cpu_cnt, |
912 | pmake, bbthread, image_types) | 913 | pmake, bbthread, selected_image_types, all_image_types) |
913 | layers = LayerEditor(configurator, None) | 914 | layers = LayerEditor(configurator, None) |
914 | window = MainWindow(taskmodel, handler, configurator, prefs, layers, mach) | 915 | window = MainWindow(taskmodel, handler, configurator, prefs, layers, mach) |
915 | prefs.set_parent_window(window) | 916 | prefs.set_parent_window(window) |