diff mbox series

lib/oe/elf.py: Add loongarch64 architecture definition for musl

Message ID 20250307094627.286183-1-wuxiaotian@loongson.cn
State Accepted, archived
Commit c6498e4ca43dc2f8bc326bc6b6dbc8fd7f0bef79
Headers show
Series lib/oe/elf.py: Add loongarch64 architecture definition for musl | expand

Commit Message

Xiaotian Wu March 7, 2025, 9:46 a.m. UTC
Add the ELF definition for the loongarch64 architecture when building
with musl as libc.

Signed-off-by: Xiaotian Wu <wuxiaotian@loongson.cn>
---
 meta/lib/oe/elf.py | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/meta/lib/oe/elf.py b/meta/lib/oe/elf.py
index e1bc7b8984..9794453092 100644
--- a/meta/lib/oe/elf.py
+++ b/meta/lib/oe/elf.py
@@ -88,6 +88,7 @@  def machine_dict(d):
                   "i586":       (   3,     0,    0,          True,          32),
                   "i686":       (   3,     0,    0,          True,          32),
                   "x86_64":     (  62,     0,    0,          True,          64),
+                  "loongarch64":( 258,     0,    0,          True,          64),
                   "mips":       (   8,     0,    0,          False,         32),
                   "mipsel":     (   8,     0,    0,          True,          32),
                   "mips64":     (   8,     0,    0,          False,         64),