summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2018-12-10 15:52:06 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-12-13 16:32:21 +0000
commita34555a54dae29233bd8c4d8f3123bae384f43f5 (patch)
tree6fc63345fb3a2a7a043565bf824561fe80028dc0
parentadfd8582ea988f733e9b15d22bb0826d2d38137b (diff)
downloadpoky-a34555a54dae29233bd8c4d8f3123bae384f43f5.tar.gz
insane.bbclass: BPF objects may mismatch in endianness and bitness too
This ensures that bitness and endianness is ignored for BPF objects Fixes QA issues like Bit size did not match (32 to 64) kernel-selftest on /work/qemumips-yoe-linux/kernel-selftest/1.0-r0/packages-split/kernel-selftest/usr/kernel-selftest/bpf/test_btf_nokv.o (From OE-Core rev: 26722e59ca5df14bd90fc09306d97ff0fd078f32) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/insane.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 295feb8a5f..29754f4cfe 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -307,10 +307,10 @@ def package_qa_check_arch(path,name,d, elf, messages):
307 if not ((machine == elf.machine()) or is_32 or is_bpf): 307 if not ((machine == elf.machine()) or is_32 or is_bpf):
308 package_qa_add_message(messages, "arch", "Architecture did not match (%s, expected %s) on %s" % \ 308 package_qa_add_message(messages, "arch", "Architecture did not match (%s, expected %s) on %s" % \
309 (oe.qa.elf_machine_to_string(elf.machine()), oe.qa.elf_machine_to_string(machine), package_qa_clean_path(path,d))) 309 (oe.qa.elf_machine_to_string(elf.machine()), oe.qa.elf_machine_to_string(machine), package_qa_clean_path(path,d)))
310 elif not ((bits == elf.abiSize()) or is_32): 310 elif not ((bits == elf.abiSize()) or is_32 or is_bpf):
311 package_qa_add_message(messages, "arch", "Bit size did not match (%d to %d) %s on %s" % \ 311 package_qa_add_message(messages, "arch", "Bit size did not match (%d to %d) %s on %s" % \
312 (bits, elf.abiSize(), bpn, package_qa_clean_path(path,d))) 312 (bits, elf.abiSize(), bpn, package_qa_clean_path(path,d)))
313 elif not littleendian == elf.isLittleEndian(): 313 elif not ((littleendian == elf.isLittleEndian()) or is_bpf):
314 package_qa_add_message(messages, "arch", "Endiannes did not match (%d to %d) on %s" % \ 314 package_qa_add_message(messages, "arch", "Endiannes did not match (%d to %d) on %s" % \
315 (littleendian, elf.isLittleEndian(), package_qa_clean_path(path,d))) 315 (littleendian, elf.isLittleEndian(), package_qa_clean_path(path,d)))
316 316