From 140744c4701bcac0dd61e11303d008f2ea34fc1b Mon Sep 17 00:00:00 2001 From: Cristiana Voicu Date: Mon, 29 Jul 2013 09:55:06 +0000 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/command.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'bitbake/lib/bb/command.py') 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: image = params[0] base_image = params[1] package_queue = params[2] - return command.cooker.generateNewImage(image, base_image, package_queue) + timestamp = params[3] + return command.cooker.generateNewImage(image, base_image, + package_queue, timestamp) + + def ensureDir(self, command, params): + directory = params[0] + bb.utils.mkdirhier(directory) def setVarFile(self, command, params): """ -- cgit v1.2.3-54-g00ecf