diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index ebc70ee61c..2f204aea97 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py | |||
@@ -464,10 +464,9 @@ class RunQueue: | |||
464 | fnid = self.runq_fnid[task] | 464 | fnid = self.runq_fnid[task] |
465 | if fnid not in reccumdepends: | 465 | if fnid not in reccumdepends: |
466 | reccumdepends[fnid] = set() | 466 | reccumdepends[fnid] = set() |
467 | if task in self.runq_depends: | 467 | if fnid in tdepends_fnid: |
468 | reccumdepends[fnid].update(self.runq_depends[task]) | 468 | reccumdepends[fnid].update(tdepends_fnid[fnid]) |
469 | if fnid in tdepends_fnid: | 469 | reccumdepends[fnid].update(self.runq_depends[task]) |
470 | reccumdepends[fnid].update(tdepends_fnid[fnid]) | ||
471 | for task in range(len(self.runq_fnid)): | 470 | for task in range(len(self.runq_fnid)): |
472 | taskfnid = self.runq_fnid[task] | 471 | taskfnid = self.runq_fnid[task] |
473 | for fnid in reccumdepends: | 472 | for fnid in reccumdepends: |
@@ -485,6 +484,9 @@ class RunQueue: | |||
485 | if len(runq_recrdepends[task]) > 0: | 484 | if len(runq_recrdepends[task]) > 0: |
486 | taskfnid = self.runq_fnid[task] | 485 | taskfnid = self.runq_fnid[task] |
487 | for dep in reccumdepends[taskfnid]: | 486 | for dep in reccumdepends[taskfnid]: |
487 | # Ignore self references | ||
488 | if dep == task: | ||
489 | continue | ||
488 | for taskname in runq_recrdepends[task]: | 490 | for taskname in runq_recrdepends[task]: |
489 | if taskData.tasks_name[dep] == taskname: | 491 | if taskData.tasks_name[dep] == taskname: |
490 | self.runq_depends[task].add(dep) | 492 | self.runq_depends[task].add(dep) |