diff options
-rw-r--r-- | lib/bb/build.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/bb/build.py b/lib/bb/build.py index 0d0100a06..4631abdde 100644 --- a/lib/bb/build.py +++ b/lib/bb/build.py @@ -872,6 +872,12 @@ def preceedtask(task, with_recrdeptasks, d): that this may lead to the task itself being listed. """ preceed = set() + + # Ignore tasks which don't exist + tasks = d.getVar('__BBTASKS', False) + if task not in tasks: + return preceed + preceed.update(d.getVarFlag(task, 'deps') or []) if with_recrdeptasks: recrdeptask = d.getVarFlag(task, 'recrdeptask') |