summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/runqueue.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/runqueue.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/runqueue.py')
-rw-r--r--bitbake/lib/bb/runqueue.py32
1 files changed, 16 insertions, 16 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index 84b268580f..51d68a5cf8 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -262,8 +262,8 @@ class RunQueueData:
262 self.rq = rq 262 self.rq = rq
263 self.warn_multi_bb = False 263 self.warn_multi_bb = False
264 264
265 self.stampwhitelist = cfgData.getVar("BB_STAMP_WHITELIST", True) or "" 265 self.stampwhitelist = cfgData.getVar("BB_STAMP_WHITELIST") or ""
266 self.multi_provider_whitelist = (cfgData.getVar("MULTI_PROVIDER_WHITELIST", True) or "").split() 266 self.multi_provider_whitelist = (cfgData.getVar("MULTI_PROVIDER_WHITELIST") or "").split()
267 self.setscenewhitelist = get_setscene_enforce_whitelist(cfgData) 267 self.setscenewhitelist = get_setscene_enforce_whitelist(cfgData)
268 self.setscenewhitelist_checked = False 268 self.setscenewhitelist_checked = False
269 self.init_progress_reporter = bb.progress.DummyMultiStageProcessProgressReporter() 269 self.init_progress_reporter = bb.progress.DummyMultiStageProcessProgressReporter()
@@ -976,10 +976,10 @@ class RunQueue:
976 self.cfgData = cfgData 976 self.cfgData = cfgData
977 self.rqdata = RunQueueData(self, cooker, cfgData, dataCaches, taskData, targets) 977 self.rqdata = RunQueueData(self, cooker, cfgData, dataCaches, taskData, targets)
978 978
979 self.stamppolicy = cfgData.getVar("BB_STAMP_POLICY", True) or "perfile" 979 self.stamppolicy = cfgData.getVar("BB_STAMP_POLICY") or "perfile"
980 self.hashvalidate = cfgData.getVar("BB_HASHCHECK_FUNCTION", True) or None 980 self.hashvalidate = cfgData.getVar("BB_HASHCHECK_FUNCTION") or None
981 self.setsceneverify = cfgData.getVar("BB_SETSCENE_VERIFY_FUNCTION2", True) or None 981 self.setsceneverify = cfgData.getVar("BB_SETSCENE_VERIFY_FUNCTION2") or None
982 self.depvalidate = cfgData.getVar("BB_SETSCENE_DEPVALID", True) or None 982 self.depvalidate = cfgData.getVar("BB_SETSCENE_DEPVALID") or None
983 983
984 self.state = runQueuePrepare 984 self.state = runQueuePrepare
985 985
@@ -997,8 +997,8 @@ class RunQueue:
997 magic = "decafbadbad" 997 magic = "decafbadbad"
998 if fakeroot: 998 if fakeroot:
999 magic = magic + "beef" 999 magic = magic + "beef"
1000 fakerootcmd = self.cfgData.getVar("FAKEROOTCMD", True) 1000 fakerootcmd = self.cfgData.getVar("FAKEROOTCMD")
1001 fakerootenv = (self.cfgData.getVar("FAKEROOTBASEENV", True) or "").split() 1001 fakerootenv = (self.cfgData.getVar("FAKEROOTBASEENV") or "").split()
1002 env = os.environ.copy() 1002 env = os.environ.copy()
1003 for key, value in (var.split('=') for var in fakerootenv): 1003 for key, value in (var.split('=') for var in fakerootenv):
1004 env[key] = value 1004 env[key] = value
@@ -1024,9 +1024,9 @@ class RunQueue:
1024 "logdefaultverboselogs" : bb.msg.loggerVerboseLogs, 1024 "logdefaultverboselogs" : bb.msg.loggerVerboseLogs,
1025 "logdefaultdomain" : bb.msg.loggerDefaultDomains, 1025 "logdefaultdomain" : bb.msg.loggerDefaultDomains,
1026 "prhost" : self.cooker.prhost, 1026 "prhost" : self.cooker.prhost,
1027 "buildname" : self.cfgData.getVar("BUILDNAME", True), 1027 "buildname" : self.cfgData.getVar("BUILDNAME"),
1028 "date" : self.cfgData.getVar("DATE", True), 1028 "date" : self.cfgData.getVar("DATE"),
1029 "time" : self.cfgData.getVar("TIME", True), 1029 "time" : self.cfgData.getVar("TIME"),
1030 } 1030 }
1031 1031
1032 worker.stdin.write(b"<cookerconfig>" + pickle.dumps(self.cooker.configuration) + b"</cookerconfig>") 1032 worker.stdin.write(b"<cookerconfig>" + pickle.dumps(self.cooker.configuration) + b"</cookerconfig>")
@@ -1427,8 +1427,8 @@ class RunQueueExecute:
1427 self.cfgData = rq.cfgData 1427 self.cfgData = rq.cfgData
1428 self.rqdata = rq.rqdata 1428 self.rqdata = rq.rqdata
1429 1429
1430 self.number_tasks = int(self.cfgData.getVar("BB_NUMBER_THREADS", True) or 1) 1430 self.number_tasks = int(self.cfgData.getVar("BB_NUMBER_THREADS") or 1)
1431 self.scheduler = self.cfgData.getVar("BB_SCHEDULER", True) or "speed" 1431 self.scheduler = self.cfgData.getVar("BB_SCHEDULER") or "speed"
1432 1432
1433 self.runq_buildable = set() 1433 self.runq_buildable = set()
1434 self.runq_running = set() 1434 self.runq_running = set()
@@ -1630,7 +1630,7 @@ class RunQueueExecuteTasks(RunQueueExecute):
1630 if type(obj) is type and 1630 if type(obj) is type and
1631 issubclass(obj, RunQueueScheduler)) 1631 issubclass(obj, RunQueueScheduler))
1632 1632
1633 user_schedulers = self.cfgData.getVar("BB_SCHEDULERS", True) 1633 user_schedulers = self.cfgData.getVar("BB_SCHEDULERS")
1634 if user_schedulers: 1634 if user_schedulers:
1635 for sched in user_schedulers.split(): 1635 for sched in user_schedulers.split():
1636 if not "." in sched: 1636 if not "." in sched:
@@ -2402,9 +2402,9 @@ class runQueuePipe():
2402 self.input.close() 2402 self.input.close()
2403 2403
2404def get_setscene_enforce_whitelist(d): 2404def get_setscene_enforce_whitelist(d):
2405 if d.getVar('BB_SETSCENE_ENFORCE', True) != '1': 2405 if d.getVar('BB_SETSCENE_ENFORCE') != '1':
2406 return None 2406 return None
2407 whitelist = (d.getVar("BB_SETSCENE_ENFORCE_WHITELIST", True) or "").split() 2407 whitelist = (d.getVar("BB_SETSCENE_ENFORCE_WHITELIST") or "").split()
2408 outlist = [] 2408 outlist = []
2409 for item in whitelist[:]: 2409 for item in whitelist[:]:
2410 if item.startswith('%:'): 2410 if item.startswith('%:'):