From bb8a265b0fa61a502c95b830ac82715e6685e2ab Mon Sep 17 00:00:00 2001 From: Cristiana Voicu Date: Mon, 29 Jul 2013 11:44:58 +0000 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/command.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bitbake/lib/bb/command.py') 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: 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): """ -- cgit v1.2.3-54-g00ecf