Patchwork [bitbake-devel] hob: use base image only if it was set

login
register
mail settings
Submitter Cristiana Voicu
Date Dec. 14, 2012, 3:35 p.m.
Message ID <1355499347-9320-1-git-send-email-cristiana.voicu@intel.com>
Download mbox | patch
Permalink /patch/41019/
State New
Headers show

Comments

Cristiana Voicu - Dec. 14, 2012, 3:35 p.m.
As it is, when you create a new image from scratch, hob gives an error.
This is because of the patch for #2601.

Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
---
 bitbake/lib/bb/ui/crumbs/hobeventhandler.py |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

Patch

diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
index ae853ee..e690d4c 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):
                 targets.append(self.toolchain)
             if targets[0] == "hob-image":
                 hobImage = self.runCommand(["matchFile", "hob-image.bb"])
-                baseImage = self.runCommand(["matchFile", self.base_image + ".bb"])
-                version = self.runCommand(["generateNewImage", hobImage, baseImage, self.package_queue])
-                targets[0] += version
-                self.recipe_model.set_custom_image_version(version)
+                if self.base_image != "Create your own image":
+                    baseImage = self.runCommand(["matchFile", self.base_image + ".bb"])
+                    version = self.runCommand(["generateNewImage", hobImage, baseImage, self.package_queue])
+                    targets[0] += version
+                    self.recipe_model.set_custom_image_version(version)
 
             self.runCommand(["buildTargets", targets, self.default_task])