diff options
author | Cristian Iorga <cristian.iorga@intel.com> | 2015-06-08 13:53:07 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-06-11 23:59:09 +0100 |
commit | 63e62599a6af469c1705c9272cd280b54d5b7144 (patch) | |
tree | 825e7a281ee3e97f03bb06c96e9ad4fbbc1a5d9a /meta | |
parent | 062678c4ab88fa94ed38efa6520c3b4e2d88ca73 (diff) | |
download | poky-63e62599a6af469c1705c9272cd280b54d5b7144.tar.gz |
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].
(From OE-Core rev: a938f2117989b596c50d9d7f3929dd3c0f893d08)
Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/insane.bbclass | 5 |
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): | |||
457 | provides = d.getVar('PROVIDES', True) | 457 | provides = d.getVar('PROVIDES', True) |
458 | bpn = d.getVar('BPN', True) | 458 | bpn = d.getVar('BPN', True) |
459 | 459 | ||
460 | if target_arch == "allarch": | ||
461 | pn = d.getVar('PN', True) | ||
462 | messages["arch"] = pn + ": Recipe inherits the allarch class, but has packaged architecture-specific binaries" | ||
463 | return | ||
464 | |||
460 | # FIXME: Cross package confuse this check, so just skip them | 465 | # FIXME: Cross package confuse this check, so just skip them |
461 | for s in ['cross', 'nativesdk', 'cross-canadian']: | 466 | for s in ['cross', 'nativesdk', 'cross-canadian']: |
462 | if bb.data.inherits_class(s, d): | 467 | if bb.data.inherits_class(s, d): |