diff options
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/hobeventhandler.py')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/hobeventhandler.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py index 74081dcc84..8909e010f9 100644 --- a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py +++ b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py | |||
@@ -131,9 +131,8 @@ class HobHandler(gobject.GObject): | |||
131 | targets = [self.hob_image] | 131 | targets = [self.hob_image] |
132 | self.server.runCommand(["setVariable", "LINGUAS_INSTALL", ""]) | 132 | self.server.runCommand(["setVariable", "LINGUAS_INSTALL", ""]) |
133 | self.server.runCommand(["setVariable", "PACKAGE_INSTALL", " ".join(self.package_queue)]) | 133 | self.server.runCommand(["setVariable", "PACKAGE_INSTALL", " ".join(self.package_queue)]) |
134 | if self.toolchain_build: | 134 | if self.toolchain_packages: |
135 | pkgs = self.package_queue + [i+'-dev' for i in self.package_queue] + [i+'-dbg' for i in self.package_queue] | 135 | self.server.runCommand(["setVariable", "TOOLCHAIN_TARGET_TASK", " ".join(self.toolchain_packages)]) |
136 | self.server.runCommand(["setVariable", "TOOLCHAIN_TARGET_TASK", " ".join(pkgs)]) | ||
137 | targets.append(self.hob_toolchain) | 136 | targets.append(self.hob_toolchain) |
138 | self.server.runCommand(["buildTargets", targets, "build"]) | 137 | self.server.runCommand(["buildTargets", targets, "build"]) |
139 | 138 | ||
@@ -350,11 +349,11 @@ class HobHandler(gobject.GObject): | |||
350 | self.commands_async.append(self.SUB_BUILD_RECIPES) | 349 | self.commands_async.append(self.SUB_BUILD_RECIPES) |
351 | self.run_next_command(self.GENERATE_PACKAGES) | 350 | self.run_next_command(self.GENERATE_PACKAGES) |
352 | 351 | ||
353 | def generate_image(self, tgts, hob_image, hob_toolchain, toolchain_build=False): | 352 | def generate_image(self, tgts, hob_image, hob_toolchain, toolchain_packages=[]): |
354 | self.package_queue = tgts | 353 | self.package_queue = tgts |
355 | self.hob_image = hob_image | 354 | self.hob_image = hob_image |
356 | self.hob_toolchain = hob_toolchain | 355 | self.hob_toolchain = hob_toolchain |
357 | self.toolchain_build = toolchain_build | 356 | self.toolchain_packages = toolchain_packages |
358 | self.commands_async.append(self.SUB_PARSE_CONFIG) | 357 | self.commands_async.append(self.SUB_PARSE_CONFIG) |
359 | self.commands_async.append(self.SUB_BUILD_IMAGE) | 358 | self.commands_async.append(self.SUB_BUILD_IMAGE) |
360 | self.run_next_command(self.GENERATE_IMAGE) | 359 | self.run_next_command(self.GENERATE_IMAGE) |