summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
diff options
context:
space:
mode:
authorCristiana Voicu <cristiana.voicu@intel.com>2012-12-12 13:51:51 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-12-14 13:08:49 +0000
commitf9d9cc87c59e309516c3e8db423715139f6a8f62 (patch)
treeeeed21d7dbd0fce3da1e4d9d30d38155a576b473 /bitbake/lib/bb/ui/crumbs/hobeventhandler.py
parenta947b547d0a5f247e39cbc0fae88c0de5438aa7b (diff)
downloadpoky-f9d9cc87c59e309516c3e8db423715139f6a8f62.tar.gz
bitbake: hob/bitbake: custom image is now using the base image
Till now, a custom image made in Hob was using only the packages from the base image. Now it is using everything declared in the base image. Also next to hob-image.bb, it creates another .bb file which is used in building process. Those images are ignored by git. [YOCTO #2601] (Bitbake rev: 22007cf71a00fbb03b40f97201a6eb06c9aebd16) Signed-off-by: Cristiana Voicu <cristiana.voicu@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.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
index 8a2ac5fb6c..ae853ee3c7 100644
--- a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
+++ b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
@@ -166,6 +166,13 @@ class HobHandler(gobject.GObject):
166 if self.toolchain_packages: 166 if self.toolchain_packages:
167 self.runCommand(["setVariable", "TOOLCHAIN_TARGET_TASK", " ".join(self.toolchain_packages)]) 167 self.runCommand(["setVariable", "TOOLCHAIN_TARGET_TASK", " ".join(self.toolchain_packages)])
168 targets.append(self.toolchain) 168 targets.append(self.toolchain)
169 if targets[0] == "hob-image":
170 hobImage = self.runCommand(["matchFile", "hob-image.bb"])
171 baseImage = self.runCommand(["matchFile", self.base_image + ".bb"])
172 version = self.runCommand(["generateNewImage", hobImage, baseImage, self.package_queue])
173 targets[0] += version
174 self.recipe_model.set_custom_image_version(version)
175
169 self.runCommand(["buildTargets", targets, self.default_task]) 176 self.runCommand(["buildTargets", targets, self.default_task])
170 177
171 def display_error(self): 178 def display_error(self):
@@ -386,8 +393,9 @@ class HobHandler(gobject.GObject):
386 self.commands_async.append(self.SUB_BUILD_RECIPES) 393 self.commands_async.append(self.SUB_BUILD_RECIPES)
387 self.run_next_command(self.GENERATE_PACKAGES) 394 self.run_next_command(self.GENERATE_PACKAGES)
388 395
389 def generate_image(self, image, toolchain, image_packages=[], toolchain_packages=[], default_task="build"): 396 def generate_image(self, image, base_image, toolchain, image_packages=[], toolchain_packages=[], default_task="build"):
390 self.image = image 397 self.image = image
398 self.base_image = base_image
391 self.toolchain = toolchain 399 self.toolchain = toolchain
392 self.package_queue = image_packages 400 self.package_queue = image_packages
393 self.toolchain_packages = toolchain_packages 401 self.toolchain_packages = toolchain_packages