summaryrefslogtreecommitdiffstats
path: root/lib/bb/command.py
diff options
context:
space:
mode:
authorCristiana Voicu <cristiana.voicu@intel.com>2013-07-29 11:44:58 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-08-06 12:59:21 +0100
commit4aedbee90bd92395c2460a68702e6ede00e256c9 (patch)
tree7c080f0b5abde79a0e3bc1ba44887c833b26115b /lib/bb/command.py
parent0aba493103d1fe50026a47db16529febbbbd77a2 (diff)
downloadbitbake-4aedbee90bd92395c2460a68702e6ede00e256c9.tar.gz
hob & bitbake: append a value to a variable from hob throught bitbake
It was necessary to append ${TOPDIR}/recipes/images to BBFILES. Implemented the mechanism to append a value to a variable: a command and the method in cooker. [YOCTO #4193] 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.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/bb/command.py b/lib/bb/command.py
index 5eb34aff3..33a24406b 100644
--- a/lib/bb/command.py
+++ b/lib/bb/command.py
@@ -153,7 +153,7 @@ class CommandsSync:
varname = params[0]
expand = True
if len(params) > 1:
- expand = params[1]
+ expand = (params[1] == "True")
return command.cooker.data.getVar(varname, expand)
getVariable.readonly = True
@@ -230,7 +230,8 @@ class CommandsSync:
var = params[0]
val = params[1]
default_file = params[2]
- command.cooker.saveConfigurationVar(var, val, default_file)
+ op = params[3]
+ command.cooker.modifyConfigurationVar(var, val, default_file, op)
def createConfigFile(self, command, params):
"""