summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cookerdata.py
diff options
context:
space:
mode:
authorJoshua Lock <joshua.g.lock@intel.com>2016-11-25 15:28:08 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-11-30 15:48:09 +0000
commit1fce7ecbbb004a5ad82da3eef79cfd52b276708d (patch)
treedc19c8ecb8e0b04ba5eafd27a7679bb55585a868 /bitbake/lib/bb/cookerdata.py
parent1d0c124cdf0282b8d139063409e40982f0ec9888 (diff)
downloadpoky-1fce7ecbbb004a5ad82da3eef79cfd52b276708d.tar.gz
bitbake: bitbake: remove True option to getVar calls
getVar() now defaults to expanding by default, thus remove the True option from getVar() calls with a regex search and replace. Search made with the following regex: getVar ?\(( ?[^,()]*), True\) (Bitbake rev: 3b45c479de8640f92dd1d9f147b02e1eecfaadc8) Signed-off-by: Joshua Lock <joshua.g.lock@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cookerdata.py')
-rw-r--r--bitbake/lib/bb/cookerdata.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/bitbake/lib/bb/cookerdata.py b/bitbake/lib/bb/cookerdata.py
index b07c266439..680f79a3ec 100644
--- a/bitbake/lib/bb/cookerdata.py
+++ b/bitbake/lib/bb/cookerdata.py
@@ -212,7 +212,7 @@ def _inherit(bbclass, data):
212 212
213def findConfigFile(configfile, data): 213def findConfigFile(configfile, data):
214 search = [] 214 search = []
215 bbpath = data.getVar("BBPATH", True) 215 bbpath = data.getVar("BBPATH")
216 if bbpath: 216 if bbpath:
217 for i in bbpath.split(":"): 217 for i in bbpath.split(":"):
218 search.append(os.path.join(i, "conf", configfile)) 218 search.append(os.path.join(i, "conf", configfile))
@@ -286,7 +286,7 @@ class CookerDataBuilder(object):
286 self.data_hash = self.data.get_hash() 286 self.data_hash = self.data.get_hash()
287 self.mcdata[''] = self.data 287 self.mcdata[''] = self.data
288 288
289 multiconfig = (self.data.getVar("BBMULTICONFIG", True) or "").split() 289 multiconfig = (self.data.getVar("BBMULTICONFIG") or "").split()
290 for config in multiconfig: 290 for config in multiconfig:
291 mcdata = self.parseConfigurationFiles(['conf/multiconfig/%s.conf' % config] + self.prefiles, self.postfiles) 291 mcdata = self.parseConfigurationFiles(['conf/multiconfig/%s.conf' % config] + self.prefiles, self.postfiles)
292 bb.event.fire(bb.event.ConfigParsed(), mcdata) 292 bb.event.fire(bb.event.ConfigParsed(), mcdata)
@@ -319,7 +319,7 @@ class CookerDataBuilder(object):
319 data.setVar("TOPDIR", os.path.dirname(os.path.dirname(layerconf))) 319 data.setVar("TOPDIR", os.path.dirname(os.path.dirname(layerconf)))
320 data = parse_config_file(layerconf, data) 320 data = parse_config_file(layerconf, data)
321 321
322 layers = (data.getVar('BBLAYERS', True) or "").split() 322 layers = (data.getVar('BBLAYERS') or "").split()
323 323
324 data = bb.data.createCopy(data) 324 data = bb.data.createCopy(data)
325 approved = bb.utils.approved_variables() 325 approved = bb.utils.approved_variables()
@@ -342,7 +342,7 @@ class CookerDataBuilder(object):
342 data.delVar('LAYERDIR_RE') 342 data.delVar('LAYERDIR_RE')
343 data.delVar('LAYERDIR') 343 data.delVar('LAYERDIR')
344 344
345 if not data.getVar("BBPATH", True): 345 if not data.getVar("BBPATH"):
346 msg = "The BBPATH variable is not set" 346 msg = "The BBPATH variable is not set"
347 if not layerconf: 347 if not layerconf:
348 msg += (" and bitbake did not find a conf/bblayers.conf file in" 348 msg += (" and bitbake did not find a conf/bblayers.conf file in"
@@ -357,7 +357,7 @@ class CookerDataBuilder(object):
357 data = parse_config_file(p, data) 357 data = parse_config_file(p, data)
358 358
359 # Handle any INHERITs and inherit the base class 359 # Handle any INHERITs and inherit the base class
360 bbclasses = ["base"] + (data.getVar('INHERIT', True) or "").split() 360 bbclasses = ["base"] + (data.getVar('INHERIT') or "").split()
361 for bbclass in bbclasses: 361 for bbclass in bbclasses:
362 data = _inherit(bbclass, data) 362 data = _inherit(bbclass, data)
363 363