diff options
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/hobeventhandler.py')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/hobeventhandler.py | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py index 8bf599ff64..393b40707c 100644 --- a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py +++ b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py | |||
@@ -71,7 +71,7 @@ class HobHandler(gobject.GObject): | |||
71 | gobject.GObject.__init__(self) | 71 | gobject.GObject.__init__(self) |
72 | 72 | ||
73 | self.current_command = None | 73 | self.current_command = None |
74 | self.building = None | 74 | self.building = False |
75 | self.build_toolchain = False | 75 | self.build_toolchain = False |
76 | self.build_toolchain_headers = False | 76 | self.build_toolchain_headers = False |
77 | self.generating = False | 77 | self.generating = False |
@@ -128,10 +128,10 @@ class HobHandler(gobject.GObject): | |||
128 | self.server.runCommand(["resetCooker"]) | 128 | self.server.runCommand(["resetCooker"]) |
129 | self.server.runCommand(["reparseFiles"]) | 129 | self.server.runCommand(["reparseFiles"]) |
130 | elif self.current_command == self.BUILD_IMAGE: | 130 | elif self.current_command == self.BUILD_IMAGE: |
131 | self.building = "image" | ||
132 | if self.generating: | 131 | if self.generating: |
133 | self.emit("data-generated") | 132 | self.emit("data-generated") |
134 | self.generating = False | 133 | self.generating = False |
134 | self.building = True | ||
135 | self.server.runCommand(["buildTargets", self.build_queue, "build"]) | 135 | self.server.runCommand(["buildTargets", self.build_queue, "build"]) |
136 | self.build_queue = [] | 136 | self.build_queue = [] |
137 | self.current_command = None | 137 | self.current_command = None |
@@ -247,11 +247,12 @@ class HobHandler(gobject.GObject): | |||
247 | pmake = "-j %s" % threads | 247 | pmake = "-j %s" % threads |
248 | self.server.runCommand(["setVariable", "BB_NUMBER_THREADS", pmake]) | 248 | self.server.runCommand(["setVariable", "BB_NUMBER_THREADS", pmake]) |
249 | 249 | ||
250 | def build_image(self, image, configurator): | 250 | def build_targets(self, tgts, configurator, build_type="image"): |
251 | self.build_type = build_type | ||
251 | targets = [] | 252 | targets = [] |
252 | nbbp = None | 253 | nbbp = None |
253 | nbbf = None | 254 | nbbf = None |
254 | targets.append(image) | 255 | targets.extend(tgts) |
255 | if self.build_toolchain and self.build_toolchain_headers: | 256 | if self.build_toolchain and self.build_toolchain_headers: |
256 | targets.append("meta-toolchain-sdk") | 257 | targets.append("meta-toolchain-sdk") |
257 | elif self.build_toolchain: | 258 | elif self.build_toolchain: |
@@ -284,10 +285,6 @@ class HobHandler(gobject.GObject): | |||
284 | self.current_command = self.REPARSE_FILES | 285 | self.current_command = self.REPARSE_FILES |
285 | self.run_next_command() | 286 | self.run_next_command() |
286 | 287 | ||
287 | def build_packages(self, pkgs): | ||
288 | self.building = "packages" | ||
289 | self.server.runCommand(["buildTargets", pkgs, "build"]) | ||
290 | |||
291 | def cancel_build(self, force=False): | 288 | def cancel_build(self, force=False): |
292 | if force: | 289 | if force: |
293 | # Force the cooker to stop as quickly as possible | 290 | # Force the cooker to stop as quickly as possible |