aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/data.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/data.py
parent0aba493103d1fe50026a47db16529febbbbd77a2 (diff)
downloadbitbake-contrib-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/data.py')
-rw-r--r--lib/bb/data.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bb/data.py b/lib/bb/data.py
index 87c4808b5..8c9cb0f02 100644
--- a/lib/bb/data.py
+++ b/lib/bb/data.py
@@ -97,6 +97,10 @@ def delVar(var, d):
"""Removes a variable from the data set"""
d.delVar(var)
+def appendVar(var, value, d):
+ """Append additional value to a variable"""
+ d.appendVar(var, value)
+
def setVarFlag(var, flag, flagvalue, d):
"""Set a flag for a given variable to a given value"""
d.setVarFlag(var, flag, flagvalue)