diff options
Diffstat (limited to 'bitbake/lib')
-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 1e062adb51..c2479dd167 100644 --- a/bitbake/lib/bb/build.py +++ b/bitbake/lib/bb/build.py | |||
@@ -1034,6 +1034,8 @@ def tasksbetween(task_start, task_end, d): | |||
1034 | def follow_chain(task, endtask, chain=None): | 1034 | def follow_chain(task, endtask, chain=None): |
1035 | if not chain: | 1035 | if not chain: |
1036 | chain = [] | 1036 | chain = [] |
1037 | if task in chain: | ||
1038 | bb.fatal("Circular task dependencies as %s depends on itself via the chain %s" % (task, " -> ".join(chain))) | ||
1037 | chain.append(task) | 1039 | chain.append(task) |
1038 | for othertask in tasks: | 1040 | for othertask in tasks: |
1039 | if othertask == task: | 1041 | if othertask == task: |