diff options
Diffstat (limited to 'bitbake/lib/bb/build.py')
-rw-r--r-- | bitbake/lib/bb/build.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py index 6e9c064e9d..17c70d0a61 100644 --- a/bitbake/lib/bb/build.py +++ b/bitbake/lib/bb/build.py | |||
@@ -905,6 +905,8 @@ def tasksbetween(task_start, task_end, d): | |||
905 | def follow_chain(task, endtask, chain=None): | 905 | def follow_chain(task, endtask, chain=None): |
906 | if not chain: | 906 | if not chain: |
907 | chain = [] | 907 | chain = [] |
908 | if task in chain: | ||
909 | bb.fatal("Circular task dependencies as %s depends on itself via the chain %s" % (task, " -> ".join(chain))) | ||
908 | chain.append(task) | 910 | chain.append(task) |
909 | for othertask in tasks: | 911 | for othertask in tasks: |
910 | if othertask == task: | 912 | if othertask == task: |