diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-11-09 17:56:49 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-11-16 14:49:00 +0000 |
commit | b6e49784eac40a13b894839d17e89ef69a777a5d (patch) | |
tree | 41c1cac407be15cd9001bd2a35cfe1c841922f29 /bitbake/lib/bb/runqueue.py | |
parent | abeea5c797a628d676f07edc7177c461e75588b7 (diff) | |
download | poky-b6e49784eac40a13b894839d17e89ef69a777a5d.tar.gz |
bitbake: runqueue: Move 'cantskip' into sqdata
Conceptually, this belongs in sqdata so this is the next step in refactoring
this code, continuing what was started a while ago.
(Bitbake rev: 2cf267cb657cd1864db43955cc010abba7a64093)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/runqueue.py')
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index 475c3c5052..2a8b89b264 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py | |||
@@ -1862,11 +1862,6 @@ class RunQueueExecute: | |||
1862 | self.tasks_notcovered = set() | 1862 | self.tasks_notcovered = set() |
1863 | self.scenequeue_notneeded = set() | 1863 | self.scenequeue_notneeded = set() |
1864 | 1864 | ||
1865 | # We can't skip specified target tasks which aren't setscene tasks | ||
1866 | self.cantskip = set(self.rqdata.target_tids) | ||
1867 | self.cantskip.difference_update(self.rqdata.runq_setscene_tids) | ||
1868 | self.cantskip.intersection_update(self.rqdata.runtaskentries) | ||
1869 | |||
1870 | schedulers = self.get_schedulers() | 1865 | schedulers = self.get_schedulers() |
1871 | for scheduler in schedulers: | 1866 | for scheduler in schedulers: |
1872 | if self.scheduler == scheduler.name: | 1867 | if self.scheduler == scheduler.name: |
@@ -2399,7 +2394,7 @@ class RunQueueExecute: | |||
2399 | return | 2394 | return |
2400 | 2395 | ||
2401 | notcovered = set(self.scenequeue_notcovered) | 2396 | notcovered = set(self.scenequeue_notcovered) |
2402 | notcovered |= self.cantskip | 2397 | notcovered |= self.sqdata.cantskip |
2403 | for tid in self.scenequeue_notcovered: | 2398 | for tid in self.scenequeue_notcovered: |
2404 | notcovered |= self.sqdata.sq_covered_tasks[tid] | 2399 | notcovered |= self.sqdata.sq_covered_tasks[tid] |
2405 | notcovered |= self.sqdata.unskippable.difference(self.rqdata.runq_setscene_tids) | 2400 | notcovered |= self.sqdata.unskippable.difference(self.rqdata.runq_setscene_tids) |
@@ -2784,6 +2779,11 @@ def build_scenequeue_data(sqdata, rqdata, rq, cooker, stampcache, sqrq): | |||
2784 | sq_revdeps_squash = {} | 2779 | sq_revdeps_squash = {} |
2785 | sq_collated_deps = {} | 2780 | sq_collated_deps = {} |
2786 | 2781 | ||
2782 | # We can't skip specified target tasks which aren't setscene tasks | ||
2783 | sqdata.cantskip = set(rqdata.target_tids) | ||
2784 | sqdata.cantskip.difference_update(rqdata.runq_setscene_tids) | ||
2785 | sqdata.cantskip.intersection_update(rqdata.runtaskentries) | ||
2786 | |||
2787 | # We need to construct a dependency graph for the setscene functions. Intermediate | 2787 | # We need to construct a dependency graph for the setscene functions. Intermediate |
2788 | # dependencies between the setscene tasks only complicate the code. This code | 2788 | # dependencies between the setscene tasks only complicate the code. This code |
2789 | # therefore aims to collapse the huge runqueue dependency tree into a smaller one | 2789 | # therefore aims to collapse the huge runqueue dependency tree into a smaller one |
@@ -2852,7 +2852,7 @@ def build_scenequeue_data(sqdata, rqdata, rq, cooker, stampcache, sqrq): | |||
2852 | for tid in rqdata.runtaskentries: | 2852 | for tid in rqdata.runtaskentries: |
2853 | if not rqdata.runtaskentries[tid].revdeps: | 2853 | if not rqdata.runtaskentries[tid].revdeps: |
2854 | sqdata.unskippable.add(tid) | 2854 | sqdata.unskippable.add(tid) |
2855 | sqdata.unskippable |= sqrq.cantskip | 2855 | sqdata.unskippable |= sqdata.cantskip |
2856 | while new: | 2856 | while new: |
2857 | new = False | 2857 | new = False |
2858 | orig = sqdata.unskippable.copy() | 2858 | orig = sqdata.unskippable.copy() |