aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/command.py
diff options
context:
space:
mode:
authorCristiana Voicu <cristiana.voicu@intel.com>2013-06-20 13:19:42 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-06-20 13:24:50 +0100
commit92393701adcfa181a1090e3632bc6df7ee7852e6 (patch)
treedfe34c9a69a76927b0ae95f739a5cd6add69f95d /lib/bb/command.py
parentc53e902b010d1c3f1550f7e60e744f40120f73c2 (diff)
downloadbitbake-92393701adcfa181a1090e3632bc6df7ee7852e6.tar.gz
bitbake & hob: modify some commands and call them from hob
This patch adds a new command to create an extra configuration file, in order to create it from Hob. Also, it calls the enable/disable data tracking when needed. Modified the prefiles and postfiles variables because the cooker expects some lists. Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/command.py')
-rw-r--r--lib/bb/command.py16
1 files changed, 13 insertions, 3 deletions
diff --git a/lib/bb/command.py b/lib/bb/command.py
index 5f696c2ae..9dc38ec93 100644
--- a/lib/bb/command.py
+++ b/lib/bb/command.py
@@ -217,11 +217,21 @@ class CommandsSync:
return command.cooker.generateNewImage(image, base_image, package_queue)
def setVarFile(self, command, params):
+ """
+ Save a variable in a file; used for saving in a configuration file
+ """
var = params[0]
val = params[1]
default_file = params[2]
command.cooker.saveConfigurationVar(var, val, default_file)
+ def createConfigFile(self, command, params):
+ """
+ Create an extra configuration file
+ """
+ name = params[0]
+ command.cooker.createConfigFile(name)
+
class CommandsAsync:
"""
A class of asynchronous commands
@@ -390,11 +400,11 @@ class CommandsAsync:
"""
Parse the configuration files
"""
- prefiles = params[0]
- postfiles = params[1]
+ prefiles = params[0].split()
+ postfiles = params[1].split()
command.cooker.configuration.prefile = prefiles
command.cooker.configuration.postfile = postfiles
- command.cooker.loadConfigurationData()
+ command.cooker.loadConfigurationData(tracking=True)
command.finishAsyncCommand()
parseConfigurationFiles.needcache = False