summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-09-11 17:52:00 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-14 09:50:32 +0100
commit34cacbf1861e76067eae35031b09cf3fbc35929f (patch)
treec4ea7d4a19a27951ab2962e36678fe5a3daaddae /bitbake
parentbeb68152261070be1587a5e94a5268088bd8263e (diff)
downloadpoky-34cacbf1861e76067eae35031b09cf3fbc35929f.tar.gz
bitbake: lib/bb/command.py: ensure setVariable only sets values as strings
This is the interface Hob uses to set variable values in many instances, and at the moment it is possible that some of the values it passes are not strings. If a non-string value gets into the datastore it can trigger exceptions during parsing when we attempt to expand the variable and substitute in the non-string value. This fixes using the meta-ti layer within Hob - it currently has a reference to BB_NUMBER_THREADS within a shell function and since this is a variable that Hob was setting from its configuration as an integer, due to the above this was triggering an ExpansionError. Fixes [YOCTO #2875]. (Bitbake rev: 855b71d8a8e468bfeff9e1a6699d79d68ab27aa1) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/command.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py
index fd8912ab40..27b5171a6e 100644
--- a/bitbake/lib/bb/command.py
+++ b/bitbake/lib/bb/command.py
@@ -157,7 +157,7 @@ class CommandsSync:
157 Set the value of variable in configuration.data 157 Set the value of variable in configuration.data
158 """ 158 """
159 varname = params[0] 159 varname = params[0]
160 value = params[1] 160 value = str(params[1])
161 command.cooker.configuration.data.setVar(varname, value) 161 command.cooker.configuration.data.setVar(varname, value)
162 162
163 def initCooker(self, command, params): 163 def initCooker(self, command, params):