diff options
| author | Cristiana Voicu <cristiana.voicu@intel.com> | 2013-07-29 09:55:06 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-08-06 13:02:24 +0100 |
| commit | 140744c4701bcac0dd61e11303d008f2ea34fc1b (patch) | |
| tree | 56d29d44308a0c357069b6e7957317a88111c273 /bitbake/lib/bb/ui/crumbs/imagedetailspage.py | |
| parent | ee4fe5a229125d01cf8b697c759d0852f9a715a8 (diff) | |
| download | poky-140744c4701bcac0dd61e11303d008f2ea34fc1b.tar.gz | |
bitbake: hob/bitbake: create a template (a .bb file) from hob through bitbake
Modified generateNewImage function from cooker, in order to be used to
save a template in Hob.
Created a command to ensure that some dirs are created. The templates
(recipes) will be saved in {TOPDIR}/recipes/images folder.
Called these methods from Hob.
[YOCTO #4193]
(Bitbake rev: 96ffa00945c7eb09a0132fa47159aef3ef20fb3e)
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/imagedetailspage.py')
| -rwxr-xr-x | bitbake/lib/bb/ui/crumbs/imagedetailspage.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py index a02ab610c0..f55d43f30d 100755 --- a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py +++ b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py | |||
| @@ -624,6 +624,8 @@ class ImageDetailsPage (HobPage): | |||
| 624 | def save_button_clicked_cb(self, button): | 624 | def save_button_clicked_cb(self, button): |
| 625 | topdir = self.builder.get_topdir() | 625 | topdir = self.builder.get_topdir() |
| 626 | images_dir = topdir + "/recipes/images/" | 626 | images_dir = topdir + "/recipes/images/" |
| 627 | self.builder.ensure_dir(images_dir) | ||
| 628 | |||
| 627 | dialog = SaveImageDialog(images_dir, "Save image recipe", self.builder, | 629 | dialog = SaveImageDialog(images_dir, "Save image recipe", self.builder, |
| 628 | gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT) | 630 | gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT) |
| 629 | response = dialog.run() | 631 | response = dialog.run() |
