Skip to contentSkip to conversation

siteinfo.bbclass: Add LatticeMico32 architecture site info

PATCH New Nathan Rossi 1 participant 3 messages Sep 21, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 siteinfo.bbclass: Add LatticeMico32 architecture site info

Add the basic architecture site info targets for the LatticeMico32 architecture. This architecture does not target Linux.

---
 meta/classes/siteinfo.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta/classes/siteinfo.bbclass +1 -0
index 86bb853be2..d6da55d668 100644
@@ -30,6 +30,7 @@ def siteinfo_data(d):
         "i586": "endian-little bit-32 ix86-common",
         "i686": "endian-little bit-32 ix86-common",
         "ia64": "endian-little bit-64",
+        "lm32": "endian-big bit-32",
         "microblaze": "endian-big bit-32 microblaze-common",
         "microblazeeb": "endian-big bit-32 microblaze-common",
         "microblazeel": "endian-little bit-32 microblaze-common",

---
2.19.0

#1 lore raw

PATCH 2/3 lib/oe/elf.py: Add LatticeMico32 architecture definition

Add the ELF definition for the LaticeMico32 architecture. This architecture is 'elf' OS only as it does not target Linux.

---
 meta/lib/oe/elf.py | 1 +
 1 file changed, 1 insertion(+)
meta/lib/oe/elf.py +1 -0
index e63d268c35..0ed59ae05c 100644
@@ -13,6 +13,7 @@ def machine_dict(d):
                         "i586" :      (3,      0,    0,          True,          32),
                         "x86_64":     (62,     0,    0,          True,          64),
                         "epiphany":   (4643,   0,    0,          True,          32),
+                        "lm32":       (138,    0,    0,          False,         32),
                         "mips":       ( 8,     0,    0,          False,         32),
                         "mipsel":     ( 8,     0,    0,          True,          32),
                         "microblaze":  (189,   0,    0,          False,         32),

---
2.19.0

#2 lore raw

PATCH 3/3 qemu-targets.inc: Mark 'lm32' as softmmu only architecture

In reply to Nathan Rossi

The lm32 architecture does not support linux-user within QEMU as it is not a Linux supported target.

---
 meta/recipes-devtools/qemu/qemu-targets.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/qemu/qemu-targets.inc +1 -1
index 66dd675ed4..810401daa6 100644
@@ -7,7 +7,7 @@ def get_qemu_target_list(d):
     archs = d.getVar('QEMU_TARGETS').split()
     tos = d.getVar('HOST_OS')
     softmmuonly = ""
-    for arch in ['ppcemb']:
+    for arch in ['ppcemb', 'lm32']:
         if arch in archs:
             softmmuonly += arch + "-softmmu,"
             archs.remove(arch)

---
2.19.0