summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/taskdata.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-28 08:11:34 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-30 17:44:07 -0700
commitc5ce2878b313d7c16ca5c95d6c88b2dfadef5a00 (patch)
tree101d9593d22cd6c05383984b64f7174d5ffa7c0f /bitbake/lib/bb/taskdata.py
parentd410ebb6cb2bfcaff3bb508ffafd8bbc764a1923 (diff)
downloadpoky-c5ce2878b313d7c16ca5c95d6c88b2dfadef5a00.tar.gz
bitbake: taskdata: Don't add dependencies on tasks that don't exist
"bitbake meta-toolchain" with qemu image testing enabled causes problems since it adds a task after do_rootfs which doesn't exist in this case. We should simply ignore these extra dependencies rather than adding them in which is what this patch does (adding a debug message when this happens). (Bitbake rev: 843d3d6b0a7eb2e2f7b50c555767f5385df16ede) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/taskdata.py')
-rw-r--r--bitbake/lib/bb/taskdata.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/taskdata.py b/bitbake/lib/bb/taskdata.py
index aed3a1638d..c08186a718 100644
--- a/bitbake/lib/bb/taskdata.py
+++ b/bitbake/lib/bb/taskdata.py
@@ -176,6 +176,9 @@ class TaskData:
176 # Work out task dependencies 176 # Work out task dependencies
177 parentids = [] 177 parentids = []
178 for dep in task_deps['parents'][task]: 178 for dep in task_deps['parents'][task]:
179 if dep not in task_deps['tasks']:
180 bb.debug(2, "Not adding dependeny of %s on %s since %s does not exist" % (task, dep, dep))
181 continue
179 parentid = self.gettask_id(fn, dep) 182 parentid = self.gettask_id(fn, dep)
180 parentids.append(parentid) 183 parentids.append(parentid)
181 taskid = self.gettask_id(fn, task) 184 taskid = self.gettask_id(fn, task)