From c5ce2878b313d7c16ca5c95d6c88b2dfadef5a00 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 28 Aug 2012 08:11:34 -0700 Subject: 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 --- bitbake/lib/bb/taskdata.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bitbake/lib') 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: # Work out task dependencies parentids = [] for dep in task_deps['parents'][task]: + if dep not in task_deps['tasks']: + bb.debug(2, "Not adding dependeny of %s on %s since %s does not exist" % (task, dep, dep)) + continue parentid = self.gettask_id(fn, dep) parentids.append(parentid) taskid = self.gettask_id(fn, task) -- cgit v1.2.3-54-g00ecf