[bitbake-devel,2/6] build: Ensure warning for invalid task dependencies is useful

Submitted by Richard Purdie on May 1, 2019, 11:18 a.m. | Patch ID: 160807

Details

Message ID 20190501111859.5699-2-richard.purdie@linuxfoundation.org
State Master Next
Commit 03b7f2c3c52889938ad754b0508f5a2a1fe8a8c0
Headers show

Commit Message

Richard Purdie May 1, 2019, 11:18 a.m.
WARNING: elfutils: dependent task do_rm_work does not exist

is much less useful than

WARNING: elfutils: dependent task do_rm_work for do_deploy does not exist

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 lib/bb/build.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/lib/bb/build.py b/lib/bb/build.py
index da592e6d84..8ad9f5de2a 100644
--- a/lib/bb/build.py
+++ b/lib/bb/build.py
@@ -819,7 +819,7 @@  def add_tasks(tasklist, d):
             for dep in flags['deps']:
                 # Check and warn for "addtask task after foo" while foo does not exist
                 if not dep in tasklist:
-                    bb.warn('%s: dependent task %s does not exist' % (d.getVar('PN'), dep))
+                    bb.warn('%s: dependent task %s for %s does not exist' % (d.getVar('PN'), dep, task))
                 dep = d.expand(dep)
                 task_deps['parents'][task].append(dep)