summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2012-04-01 20:14:15 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-05 14:00:26 +0100
commit7b560745f23d862cc3e48748b56bc8ce4ce84f72 (patch)
tree6aa70efa8f99e1a98dee11ebecb93eeea5e9a8c7 /bitbake/lib/bb/ui/crumbs/hobeventhandler.py
parentf414dbbaa02de33efacf80802aa0370aad41cfa9 (diff)
downloadpoky-7b560745f23d862cc3e48748b56bc8ce4ce84f72.tar.gz
Hob: Fix toolchain build
Originally we added -dev and -dbg postfixes to our selected packages as toolchain packages. However, some package names are modified in recipes, so we could not rely on its base name. The new approach is to detect if a package is selected, then include those packages under the same recipe endswith "-dev" and "-dbg". This fixes [YOCTO #2185] (Bitbake rev: f99c66071bce63780301e1639d74316503ca934c) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/hobeventhandler.py')
-rw-r--r--bitbake/lib/bb/ui/crumbs/hobeventhandler.py9
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)