Skip to contentSkip to conversation

lib/oe/qa: handle the 'no specific instruction set' ELF e_machine value

PATCH In review Ross Burton 2 participants 2 messages Dec 18, 2020 – Dec 19, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lib/oe/qa: handle the 'no specific instruction set' ELF e_machine value

---
 meta/lib/oe/qa.py | 1 +
 1 file changed, 1 insertion(+)
meta/lib/oe/qa.py +1 -0
index ea831b930a..e8a854a302 100644
@@ -156,6 +156,7 @@ def elf_machine_to_string(machine):
     """
     try:
         return {
+            0x00: "Unset",
             0x02: "SPARC",
             0x03: "x86",
             0x08: "MIPS",
Signature · 1 line
2.25.1
#1 lore raw
Quoted 10 lines · Ross Burton
---
 meta/lib/oe/qa.py | 1 +
 1 file changed, 1 insertion(+)
meta/lib/oe/qa.py +0 -0
index ea831b930a..e8a854a302 100644

meta/lib/oe/qa.py def elf_machine_to_string(machine): · line 162

Quoted 7 lines
meta/lib/oe/qa.py +1 -0
@@ -156,6 +156,7 @@ def elf_machine_to_string(machine):
     """
     try:
         return {
+            0x00: "Unset",
             0x02: "SPARC",
             0x03: "x86",
             0x08: "MIPS",

This breaks the selftests that lib/oe/qa.py has. I'll fix it up.

Cheers,

Richard