aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2019-05-01 11:54:27 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-05-01 23:08:09 +0100
commite034c6f75e3d7730ff16a8d1bd0cba03beda0af8 (patch)
treea8a141a03074ac513dae916d41fe0c072a796cd7
parentaa4f31e5741dd98acec73f16f6028e52f4c22d6f (diff)
downloadbitbake-e034c6f75e3d7730ff16a8d1bd0cba03beda0af8.tar.gz
build: Ensure warning for invalid task dependencies is useful
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>
-rw-r--r--lib/bb/build.py2
-rw-r--r--lib/bb/tests/parse.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/build.py b/lib/bb/build.py
index da592e6d8..8ad9f5de2 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)
diff --git a/lib/bb/tests/parse.py b/lib/bb/tests/parse.py
index 4467d1799..aa7adc40f 100644
--- a/lib/bb/tests/parse.py
+++ b/lib/bb/tests/parse.py
@@ -203,5 +203,5 @@ deltask do_fetch do_patch
self.assertTrue("addtask contained multiple 'after' keywords" in stdout)
self.assertTrue('addtask ignored: " do_patch"' in stdout)
self.assertTrue('deltask ignored: " do_patch"' in stdout)
- self.assertTrue('dependent task do_foo does not exist' in stdout)
+ self.assertTrue('dependent task do_foo for do_patch does not exist' in stdout)