aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2016-10-11 13:19:44 +0100
committerKoen Kooi <koen.kooi@linaro.org>2017-03-17 09:44:55 +0100
commit1bd8b9197155b815c19018c527f5ee90a2398d66 (patch)
treec9647a8713089e9c1b077e7ee8ec36212b4d665f
parent0881d0ee4a33faed17d513e03102f67d2333ad98 (diff)
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. Change-Id: I2f7356a1c8c9e916035893d7e9c7682abc38bd27 Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta-ilp32/classes/insane.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta-ilp32/classes/insane.bbclass b/meta-ilp32/classes/insane.bbclass
index d14c590f..d405f4d6 100644
--- a/meta-ilp32/classes/insane.bbclass
+++ b/meta-ilp32/classes/insane.bbclass
@@ -548,8 +548,8 @@ def package_qa_check_arch(path,name,d, elf, messages):
# Check the architecture and endiannes of the binary
if not ((machine == elf.machine()) or \
((("virtual/kernel" in provides) or bb.data.inherits_class("module", d) ) and (target_os == "linux-gnux32" or target_os == "linux-gnun32"))):
- package_qa_add_message(messages, "arch", "Architecture did not match (%d to %d) on %s" % \
- (machine, elf.machine(), package_qa_clean_path(path,d)))
+ 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 \
((("virtual/kernel" in provides) or bb.data.inherits_class("module", d) ) and (target_os == "linux-gnux32" or target_os == "linux-gnun32"))):
package_qa_add_message(messages, "arch", "Bit size did not match (%d to %d) %s on %s" % \