summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/build.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py
index b2715fc530..24ce327c5a 100644
--- a/bitbake/lib/bb/build.py
+++ b/bitbake/lib/bb/build.py
@@ -1025,6 +1025,8 @@ def tasksbetween(task_start, task_end, d):
1025 def follow_chain(task, endtask, chain=None): 1025 def follow_chain(task, endtask, chain=None):
1026 if not chain: 1026 if not chain:
1027 chain = [] 1027 chain = []
1028 if task in chain:
1029 bb.fatal("Circular task dependencies as %s depends on itself via the chain %s" % (task, " -> ".join(chain)))
1028 chain.append(task) 1030 chain.append(task)
1029 for othertask in tasks: 1031 for othertask in tasks:
1030 if othertask == task: 1032 if othertask == task: