mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 17:19:20 +00:00
archiver: check tasks exist before adding dependencies
Some recipes don't have do_configure, or have them but are marked as noexec. Check for their existance before hooking up dependencies. [ YOCTO #12868 ] (From OE-Core rev: 5c8aa1f41f04519a8ba3997c0d8e3a71fe270fae) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
a1fd97e1c7
commit
e85f567f96
@@ -98,9 +98,12 @@ python () {
|
||||
|
||||
# There is a corner case with "gcc-source-${PV}" recipes, they don't have
|
||||
# the "do_configure" task, so we need to use "do_preconfigure"
|
||||
if pn.startswith("gcc-source-"):
|
||||
def hasTask(task):
|
||||
return bool(d.getVarFlag(task, "task", False)) and not bool(d.getVarFlag(task, "noexec", False))
|
||||
|
||||
if hasTask("do_preconfigure"):
|
||||
d.appendVarFlag('do_ar_configured', 'depends', ' %s:do_preconfigure' % pn)
|
||||
else:
|
||||
elif hasTask("do_configure"):
|
||||
d.appendVarFlag('do_ar_configured', 'depends', ' %s:do_configure' % pn)
|
||||
d.appendVarFlag('do_deploy_archives', 'depends', ' %s:do_ar_configured' % pn)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user