If a prebuilt binary is installed via a recipe that
inherits allarch, an odd-looking traceback is thrown out.
Fixed by implementing a proper check and outputting an
error message that clarifies the issue.
Fixes [YOCTO #7662].
Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
provides = d.getVar('PROVIDES', True)
bpn = d.getVar('BPN', True)
+ if target_arch == "allarch":
+ pn = d.getVar('PN', True)
+ messages["arch"] = pn + ": Recipe inherits the allarch class, but has packaged architecture-specific binaries"
+ return
+
# FIXME: Cross package confuse this check, so just skip them
for s in ['cross', 'nativesdk', 'cross-canadian']:
if bb.data.inherits_class(s, d):