mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 18:32:12 +02:00
bitbake: 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 (Bitbake rev: e034c6f75e3d7730ff16a8d1bd0cba03beda0af8) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user