summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/ui/hob.py17
1 files changed, 16 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/hob.py b/bitbake/lib/bb/ui/hob.py
index e02f48c93d..105b0ef121 100644
--- a/bitbake/lib/bb/ui/hob.py
+++ b/bitbake/lib/bb/ui/hob.py
@@ -437,7 +437,22 @@ class MainWindow (gtk.Window):
437 elif response == gtk.RESPONSE_OK: 437 elif response == gtk.RESPONSE_OK:
438 rep.base_image = "empty" 438 rep.base_image = "empty"
439 439
440 if build_image: 440 # Ensure at least one value is set in IMAGE_FSTYPES.
441 have_selected_fstype = False
442 if (len(self.prefs.selected_image_types) and
443 len(self.prefs.selected_image_types[0])):
444 have_selected_fstype = True
445
446 if build_image and not have_selected_fstype:
447 lbl = "<b>No image output type selected</b>\nThere is no image output"
448 lbl = lbl + " selected for the build. Please set an output image type"
449 lbl = lbl + " in the preferences (Edit -> Preferences)."
450 dialog = CrumbsDialog(self, lbl, gtk.STOCK_DIALOG_INFO)
451 dialog.add_button(gtk.STOCK_OK, gtk.RESPONSE_OK)
452 dialog.run()
453 dialog.destroy()
454 return
455 elif build_image:
441 self.handler.make_temp_dir() 456 self.handler.make_temp_dir()
442 recipepath = self.handler.get_temp_recipe_path(rep.base_image) 457 recipepath = self.handler.get_temp_recipe_path(rep.base_image)
443 image_name = recipepath.rstrip(".bb") 458 image_name = recipepath.rstrip(".bb")