diff options
Diffstat (limited to 'bitbake/lib/bb/ui')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/hobeventhandler.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py index 43edb70b08..b71fb33d30 100644 --- a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py +++ b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py | |||
@@ -440,11 +440,17 @@ class HobHandler(gobject.GObject): | |||
440 | self.commands_async.append(self.SUB_BUILD_RECIPES) | 440 | self.commands_async.append(self.SUB_BUILD_RECIPES) |
441 | self.run_next_command(self.GENERATE_PACKAGES) | 441 | self.run_next_command(self.GENERATE_PACKAGES) |
442 | 442 | ||
443 | def generate_image(self, image, base_image, image_packages=[], toolchain_packages=[], default_task="build"): | 443 | def generate_image(self, image, base_image, image_packages=None, toolchain_packages=None, default_task="build"): |
444 | self.image = image | 444 | self.image = image |
445 | self.base_image = base_image | 445 | self.base_image = base_image |
446 | self.package_queue = image_packages | 446 | if image_packages: |
447 | self.toolchain_packages = toolchain_packages | 447 | self.package_queue = image_packages |
448 | else: | ||
449 | self.package_queue = [] | ||
450 | if toolchain_packages: | ||
451 | self.toolchain_packages = toolchain_packages | ||
452 | else: | ||
453 | self.toolchain_packages = [] | ||
448 | self.default_task = default_task | 454 | self.default_task = default_task |
449 | self.runCommand(["setPrePostConfFiles", "conf/.hob.conf", ""]) | 455 | self.runCommand(["setPrePostConfFiles", "conf/.hob.conf", ""]) |
450 | self.commands_async.append(self.SUB_PARSE_CONFIG) | 456 | self.commands_async.append(self.SUB_PARSE_CONFIG) |