diff options
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/hobeventhandler.py | 5 | ||||
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/runningbuild.py | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py index 393b40707c..30504e1cf5 100644 --- a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py +++ b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py | |||
@@ -79,11 +79,14 @@ class HobHandler(gobject.GObject): | |||
79 | self.current_phase = None | 79 | self.current_phase = None |
80 | self.bbpath_ok = False | 80 | self.bbpath_ok = False |
81 | self.bbfiles_ok = False | 81 | self.bbfiles_ok = False |
82 | self.build_type = "image" | ||
82 | self.image_dir = os.path.join(tempfile.gettempdir(), 'hob-images') | 83 | self.image_dir = os.path.join(tempfile.gettempdir(), 'hob-images') |
83 | 84 | ||
84 | self.model = taskmodel | 85 | self.model = taskmodel |
85 | self.server = server | 86 | self.server = server |
86 | 87 | ||
88 | deploy_dir = self.server.runCommand(["getVariable", "DEPLOY_DIR"]) | ||
89 | self.image_out_dir = os.path.join(deploy_dir, "images") | ||
87 | self.image_output_types = self.server.runCommand(["getVariable", "IMAGE_FSTYPES"]).split(" ") | 90 | self.image_output_types = self.server.runCommand(["getVariable", "IMAGE_FSTYPES"]).split(" ") |
88 | 91 | ||
89 | def run_next_command(self): | 92 | def run_next_command(self): |
@@ -324,7 +327,7 @@ class HobHandler(gobject.GObject): | |||
324 | return self.image_output_types | 327 | return self.image_output_types |
325 | 328 | ||
326 | def get_image_deploy_dir(self): | 329 | def get_image_deploy_dir(self): |
327 | return self.server.runCommand(["getVariable", "DEPLOY_DIR_IMAGE"]) | 330 | return self.img_out_dir |
328 | 331 | ||
329 | def make_temp_dir(self): | 332 | def make_temp_dir(self): |
330 | bb.utils.mkdirhier(self.image_dir) | 333 | bb.utils.mkdirhier(self.image_dir) |
diff --git a/bitbake/lib/bb/ui/crumbs/runningbuild.py b/bitbake/lib/bb/ui/crumbs/runningbuild.py index bd0cbf0b1b..509590af35 100644 --- a/bitbake/lib/bb/ui/crumbs/runningbuild.py +++ b/bitbake/lib/bb/ui/crumbs/runningbuild.py | |||
@@ -242,14 +242,14 @@ class RunningBuild (gobject.GObject): | |||
242 | Colors.OK, | 242 | Colors.OK, |
243 | 0)) | 243 | 0)) |
244 | 244 | ||
245 | # Emit a generic "build-complete" signal for things wishing to | ||
246 | # handle when the build is finished | ||
247 | self.emit("build-complete") | ||
248 | # Emit the appropriate signal depending on the number of failures | 245 | # Emit the appropriate signal depending on the number of failures |
249 | if (failures >= 1): | 246 | if (failures >= 1): |
250 | self.emit ("build-failed") | 247 | self.emit ("build-failed") |
251 | else: | 248 | else: |
252 | self.emit ("build-succeeded") | 249 | self.emit ("build-succeeded") |
250 | # Emit a generic "build-complete" signal for things wishing to | ||
251 | # handle when the build is finished | ||
252 | self.emit("build-complete") | ||
253 | 253 | ||
254 | elif isinstance(event, bb.command.CommandFailed): | 254 | elif isinstance(event, bb.command.CommandFailed): |
255 | if event.error.startswith("Exited with"): | 255 | if event.error.startswith("Exited with"): |