|
@@ -301,8 +301,10 @@ def package_qa_check_arch(path,name,d, elf, messages):
|
|
|
|
|
|
# Check the architecture and endiannes of the binary
|
|
|
is_32 = (("virtual/kernel" in provides) or bb.data.inherits_class("module", d)) and \
|
|
|
- (target_os == "linux-gnux32" or target_os == "linux-muslx32" or target_os == "linux-gnu_ilp32" or re.match('mips64.*32', d.getVar('DEFAULTTUNE')))
|
|
|
- if not ((machine == elf.machine()) or is_32):
|
|
|
+ (target_os == "linux-gnux32" or target_os == "linux-muslx32" or \
|
|
|
+ target_os == "linux-gnu_ilp32" or re.match('mips64.*32', d.getVar('DEFAULTTUNE')))
|
|
|
+ is_bpf = (oe.qa.elf_machine_to_string(elf.machine()) == "BPF")
|
|
|
+ if not ((machine == elf.machine()) or is_32 or is_bpf):
|
|
|
package_qa_add_message(messages, "arch", "Architecture did not match (%s, expected %s) on %s" % \
|
|
|
(oe.qa.elf_machine_to_string(elf.machine()), oe.qa.elf_machine_to_string(machine), package_qa_clean_path(path,d)))
|
|
|
elif not ((bits == elf.abiSize()) or is_32):
|