]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake: runqueue.py: Remove redundant whitelist checks
authorRandy Witt <randy.e.witt@linux.intel.com>
Tue, 11 Oct 2016 22:36:19 +0000 (15:36 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 11 Oct 2016 22:43:16 +0000 (23:43 +0100)
The whitelist checks for BB_SETSCENE_ENFORCE were running for every call
to execute(). Since the task list doesn't change for each call into
execute, the checks only need to be ran once.

[YOCTO #10369]

(Bitbake rev: f65e631ab6705dfd9188f19ee423eca33bca7d7d)

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/runqueue.py

index 13062630c025f65cc2c028de75bb89111da9778b..84b268580fc2fba1a81c1867d8ca72267c126d04 100644 (file)
@@ -265,6 +265,7 @@ class RunQueueData:
         self.stampwhitelist = cfgData.getVar("BB_STAMP_WHITELIST", True) or ""
         self.multi_provider_whitelist = (cfgData.getVar("MULTI_PROVIDER_WHITELIST", True) or "").split()
         self.setscenewhitelist = get_setscene_enforce_whitelist(cfgData)
+        self.setscenewhitelist_checked = False
         self.init_progress_reporter = bb.progress.DummyMultiStageProcessProgressReporter()
 
         self.reset()
@@ -1701,7 +1702,9 @@ class RunQueueExecuteTasks(RunQueueExecute):
         Run the tasks in a queue prepared by rqdata.prepare()
         """
 
-        if self.rqdata.setscenewhitelist:
+        if self.rqdata.setscenewhitelist and not self.rqdata.setscenewhitelist_checked:
+            self.rqdata.setscenewhitelist_checked = True
+
             # Check tasks that are going to run against the whitelist
             def check_norun_task(tid, showerror=False):
                 (mc, fn, taskname, _) = split_tid_mcfn(tid)