summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorCristian Iorga <cristian.iorga@intel.com>2015-06-08 13:53:07 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-06-11 23:55:36 +0100
commita938f2117989b596c50d9d7f3929dd3c0f893d08 (patch)
treea4beeb96e8c55df708f8240612c042939af878ed /meta
parent7f85e74d5c53b34e5f470967fdbdbd19fed1929a (diff)
downloadopenembedded-core-a938f2117989b596c50d9d7f3929dd3c0f893d08.tar.gz
openembedded-core-a938f2117989b596c50d9d7f3929dd3c0f893d08.tar.bz2
openembedded-core-a938f2117989b596c50d9d7f3929dd3c0f893d08.zip
insane: errors out on binaries installed by allarch-inherit recipes
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>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/insane.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 14d4a3c63d..e12f2ec381 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -457,6 +457,11 @@ def package_qa_check_arch(path,name,d, elf, messages):
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):