On Tue, 24 Aug 2021, WANG Xuerui wrote:
According to their earlier reservation[1] and actual vendor system
behavior, there are 3 possible values:
- loongarch64
- loongarch32
- loongarchx32
Only the LP64 ABI is fully supported by the current upstream submission.
The "loongarch32" thing might NOT be compatible with the LP64 ABI,
instead it might be something embedded-oriented, even instruction
subsets supported might differ. The "loongarchx32" is for an
n32/x32-like ABI that doesn't exist yet, and probably will never get implemented.
Accordingly, I think we only have to care about "loongarch64" for now.
[1]: https://git.savannah.gnu.org/gitweb/?p=config.git;a=patch;h=c8ddc8472f8efcadafc1ef53ca1d863415fddd5f
Patch for eselect included below.
From a49477f39d3f000cc2ca57f18aafbd66656aba05 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ulrich=20M=C3=BCller?= <
[email protected]>
Date: Tue, 24 Aug 2021 14:13:08 +0200
Subject: [PATCH] Recognise loongarch*/loong in package-manager lib MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* libs/package-manager.bash.in (arch): Recognise loongarch*/loong.
Signed-off-by: Ulrich M=C3=BCller <
[email protected]>
---
ChangeLog | 4 ++++
libs/package-manager.bash.in | 3 ++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index dfdfe47..f2ea0b6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2021-08-24 Ulrich M=C3=BCller <
[email protected]>
+
+ * libs/package-manager.bash.in (arch): Recognise loongarch*/loong.
+
2021-02-17 Ulrich M=C3=BCller <
[email protected]>
=20
* modules/news.eselect (do_list): Recognise "new" and "all"
diff --git a/libs/package-manager.bash.in b/libs/package-manager.bash.in
index 35a1e11..c32fcb4 100644
--- a/libs/package-manager.bash.in
+++ b/libs/package-manager.bash.in
@@ -1,5 +1,5 @@
# -*-eselect-*- vim: ft=3Deselect
-# Copyright (c) 2005-2020 Gentoo Authors
+# Copyright (c) 2005-2021 Gentoo Authors
#
# This file is part of the 'eselect' tools framework.
#
@@ -76,6 +76,7 @@ arch() {
hppa*) ret=3Dhppa ;;
i?86) ret=3Dx86 ;;
ia64*) ret=3Dia64 ;;
+ loongarch*) ret=3Dloong ;;