summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/ui/crumbs/hobeventhandler.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
index ae853ee3c7..e690d4c99c 100644
--- a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
+++ b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
@@ -168,10 +168,11 @@ class HobHandler(gobject.GObject):
168 targets.append(self.toolchain) 168 targets.append(self.toolchain)
169 if targets[0] == "hob-image": 169 if targets[0] == "hob-image":
170 hobImage = self.runCommand(["matchFile", "hob-image.bb"]) 170 hobImage = self.runCommand(["matchFile", "hob-image.bb"])
171 baseImage = self.runCommand(["matchFile", self.base_image + ".bb"]) 171 if self.base_image != "Create your own image":
172 version = self.runCommand(["generateNewImage", hobImage, baseImage, self.package_queue]) 172 baseImage = self.runCommand(["matchFile", self.base_image + ".bb"])
173 targets[0] += version 173 version = self.runCommand(["generateNewImage", hobImage, baseImage, self.package_queue])
174 self.recipe_model.set_custom_image_version(version) 174 targets[0] += version
175 self.recipe_model.set_custom_image_version(version)
175 176
176 self.runCommand(["buildTargets", targets, self.default_task]) 177 self.runCommand(["buildTargets", targets, self.default_task])
177 178