summaryrefslogtreecommitdiffstats
path: root/bitbake/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 13:02:24 +0100
commitbb8a265b0fa61a502c95b830ac82715e6685e2ab (patch)
treee9b9facdca1126f32037309e21d9dc30253367ea /bitbake/lib/bb/command.py
parent116219ce09c63dfdbf1f57563c6d0b400bd96823 (diff)
downloadpoky-bb8a265b0fa61a502c95b830ac82715e6685e2ab.tar.gz
bitbake: 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] (Bitbake rev: 4aedbee90bd92395c2460a68702e6ede00e256c9) 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.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py
index 5eb34aff3d..33a24406b5 100644
--- a/bitbake/lib/bb/command.py
+++ b/bitbake/lib/bb/command.py
@@ -153,7 +153,7 @@ class CommandsSync:
153 varname = params[0] 153 varname = params[0]
154 expand = True 154 expand = True
155 if len(params) > 1: 155 if len(params) > 1:
156 expand = params[1] 156 expand = (params[1] == "True")
157 157
158 return command.cooker.data.getVar(varname, expand) 158 return command.cooker.data.getVar(varname, expand)
159 getVariable.readonly = True 159 getVariable.readonly = True
@@ -230,7 +230,8 @@ class CommandsSync:
230 var = params[0] 230 var = params[0]
231 val = params[1] 231 val = params[1]
232 default_file = params[2] 232 default_file = params[2]
233 command.cooker.saveConfigurationVar(var, val, default_file) 233 op = params[3]
234 command.cooker.modifyConfigurationVar(var, val, default_file, op)
234 235
235 def createConfigFile(self, command, params): 236 def createConfigFile(self, command, params):
236 """ 237 """