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/command.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/command.py')
-rw-r--r-- | bitbake/lib/bb/command.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py index 17276541cc..1893cce71e 100644 --- a/bitbake/lib/bb/command.py +++ b/bitbake/lib/bb/command.py | |||
@@ -214,7 +214,13 @@ class CommandsSync: | |||
214 | image = params[0] | 214 | image = params[0] |
215 | base_image = params[1] | 215 | base_image = params[1] |
216 | package_queue = params[2] | 216 | package_queue = params[2] |
217 | return command.cooker.generateNewImage(image, base_image, package_queue) | 217 | timestamp = params[3] |
218 | return command.cooker.generateNewImage(image, base_image, | ||
219 | package_queue, timestamp) | ||
220 | |||
221 | def ensureDir(self, command, params): | ||
222 | directory = params[0] | ||
223 | bb.utils.mkdirhier(directory) | ||
218 | 224 | ||
219 | def setVarFile(self, command, params): | 225 | def setVarFile(self, command, params): |
220 | """ | 226 | """ |