summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2016-10-11 13:19:44 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-10-11 22:19:21 +0100
commita003a929d009b5b360c5a050bd9d2b903df5acce (patch)
treed161ebe18ebeb82de162798a64ec54c0eee95be2 /meta/classes
parent84198174bfacbca59aa9a22780f12d7718019b89 (diff)
downloadpoky-a003a929d009b5b360c5a050bd9d2b903df5acce.tar.gz
insane: display names instead of ELF machine numbers
The 'arch' QA test currently simply outputs the ELF machine field as a number which isn't helpful. Display this as a human-readable name to make it clearer to the user what the problem is. (From OE-Core rev: 607a2a1de4b77818c3e801a4de7ff0888229e036) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-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 b347638d72..17c9284391 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -543,8 +543,8 @@ def package_qa_check_arch(path,name,d, elf, messages):
543 # Check the architecture and endiannes of the binary 543 # Check the architecture and endiannes of the binary
544 if not ((machine == elf.machine()) or \ 544 if not ((machine == elf.machine()) or \
545 ((("virtual/kernel" in provides) or bb.data.inherits_class("module", d) ) and (target_os == "linux-gnux32" or target_os == "linux-gnun32"))): 545 ((("virtual/kernel" in provides) or bb.data.inherits_class("module", d) ) and (target_os == "linux-gnux32" or target_os == "linux-gnun32"))):
546 package_qa_add_message(messages, "arch", "Architecture did not match (%d to %d) on %s" % \ 546 package_qa_add_message(messages, "arch", "Architecture did not match (%s, expected %s) on %s" % \
547 (machine, elf.machine(), package_qa_clean_path(path,d))) 547 (oe.qa.elf_machine_to_string(elf.machine()), oe.qa.elf_machine_to_string(machine), package_qa_clean_path(path,d)))
548 elif not ((bits == elf.abiSize()) or \ 548 elif not ((bits == elf.abiSize()) or \
549 ((("virtual/kernel" in provides) or bb.data.inherits_class("module", d) ) and (target_os == "linux-gnux32" or target_os == "linux-gnun32"))): 549 ((("virtual/kernel" in provides) or bb.data.inherits_class("module", d) ) and (target_os == "linux-gnux32" or target_os == "linux-gnun32"))):
550 package_qa_add_message(messages, "arch", "Bit size did not match (%d to %d) %s on %s" % \ 550 package_qa_add_message(messages, "arch", "Bit size did not match (%d to %d) %s on %s" % \