diff options
author | Joshua Lock <josh@linux.intel.com> | 2011-07-20 15:35:29 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-26 20:15:48 +0100 |
commit | c884b52dd0b790d6e3686be4260a3cceff8846bd (patch) | |
tree | efd9c5a292ee238f5d2e8d8dec94737053ddbb3f /bitbake/lib/bb/ui/crumbs/tasklistmodel.py | |
parent | 20101e9544fe596577bd4b407404feab65bc7767 (diff) | |
download | poky-c884b52dd0b790d6e3686be4260a3cceff8846bd.tar.gz |
ui/hob: enable building an image with minimal contents
This patch enables a user to build a rootfs containing only the selected
packages without having to have first selected a 'Base image'.
Fixes [YOCTO #1239]
(Bitbake rev: 05c82da31a69c910e72b58b07afcd9fca8c55479)
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/tasklistmodel.py')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/tasklistmodel.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/tasklistmodel.py b/bitbake/lib/bb/ui/crumbs/tasklistmodel.py index f4dffc6a60..36a56736db 100644 --- a/bitbake/lib/bb/ui/crumbs/tasklistmodel.py +++ b/bitbake/lib/bb/ui/crumbs/tasklistmodel.py | |||
@@ -60,9 +60,19 @@ require %s | |||
60 | 60 | ||
61 | IMAGE_INSTALL += "%s" | 61 | IMAGE_INSTALL += "%s" |
62 | """ | 62 | """ |
63 | meta_path = model.find_image_path(self.base_image) | ||
64 | 63 | ||
65 | recipe = template % (meta_path, self.userpkgs) | 64 | empty_template = """ |
65 | # Recipe generated by the HOB | ||
66 | |||
67 | inherit core-image | ||
68 | |||
69 | IMAGE_INSTALL = "%s" | ||
70 | """ | ||
71 | if self.base_image and not self.base_image == "empty": | ||
72 | meta_path = model.find_image_path(self.base_image) | ||
73 | recipe = template % (meta_path, self.userpkgs) | ||
74 | else: | ||
75 | recipe = empty_template % self.allpkgs | ||
66 | 76 | ||
67 | if os.path.exists(writepath): | 77 | if os.path.exists(writepath): |
68 | os.rename(writepath, "%s~" % writepath) | 78 | os.rename(writepath, "%s~" % writepath) |