summaryrefslogtreecommitdiffstats
path: root/meta/classes/archiver.bbclass
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2018-09-28 14:45:40 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-10-01 13:04:50 +0100
commite85f567f9669193b9214f935bce459eac1920844 (patch)
treec089d9109606277b51591cd4afd1682e0043ade8 /meta/classes/archiver.bbclass
parenta1fd97e1c7fda0fc2813aa8360972cfe69092ccd (diff)
downloadpoky-e85f567f9669193b9214f935bce459eac1920844.tar.gz
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>
Diffstat (limited to 'meta/classes/archiver.bbclass')
-rw-r--r--meta/classes/archiver.bbclass7
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass
index 31c9b7eb4b..7c3e701e70 100644
--- a/meta/classes/archiver.bbclass
+++ b/meta/classes/archiver.bbclass
@@ -98,9 +98,12 @@ python () {
98 98
99 # There is a corner case with "gcc-source-${PV}" recipes, they don't have 99 # There is a corner case with "gcc-source-${PV}" recipes, they don't have
100 # the "do_configure" task, so we need to use "do_preconfigure" 100 # the "do_configure" task, so we need to use "do_preconfigure"
101 if pn.startswith("gcc-source-"): 101 def hasTask(task):
102 return bool(d.getVarFlag(task, "task", False)) and not bool(d.getVarFlag(task, "noexec", False))
103
104 if hasTask("do_preconfigure"):
102 d.appendVarFlag('do_ar_configured', 'depends', ' %s:do_preconfigure' % pn) 105 d.appendVarFlag('do_ar_configured', 'depends', ' %s:do_preconfigure' % pn)
103 else: 106 elif hasTask("do_configure"):
104 d.appendVarFlag('do_ar_configured', 'depends', ' %s:do_configure' % pn) 107 d.appendVarFlag('do_ar_configured', 'depends', ' %s:do_configure' % pn)
105 d.appendVarFlag('do_deploy_archives', 'depends', ' %s:do_ar_configured' % pn) 108 d.appendVarFlag('do_deploy_archives', 'depends', ' %s:do_ar_configured' % pn)
106 109