mirror of
https://git.yoctoproject.org/poky
synced 2026-04-29 18:32:20 +02:00
lib/oe/qa: handle the 'no specific instruction set' ELF e_machine value
[RP: Update OEQA selftest to match change] (From OE-Core rev: a4339b1c958b736be951ae3142e6be72702ecad2) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit b7cfc0f51cc0b4866f913f6eae4fcc6f72d2578c) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
69e3551710
commit
a297097cff
@@ -156,6 +156,7 @@ def elf_machine_to_string(machine):
|
||||
"""
|
||||
try:
|
||||
return {
|
||||
0x00: "Unset",
|
||||
0x02: "SPARC",
|
||||
0x03: "x86",
|
||||
0x08: "MIPS",
|
||||
|
||||
@@ -21,6 +21,6 @@ class TestElf(TestCase):
|
||||
self.assertEqual(oe.qa.elf_machine_to_string(0xB7), "AArch64")
|
||||
self.assertEqual(oe.qa.elf_machine_to_string(0xF7), "BPF")
|
||||
|
||||
self.assertEqual(oe.qa.elf_machine_to_string(0x00), "Unknown (0)")
|
||||
self.assertEqual(oe.qa.elf_machine_to_string(0x00), "Unset")
|
||||
self.assertEqual(oe.qa.elf_machine_to_string(0xDEADBEEF), "Unknown (3735928559)")
|
||||
self.assertEqual(oe.qa.elf_machine_to_string("foobar"), "Unknown ('foobar')")
|
||||
|
||||
Reference in New Issue
Block a user