Gentoo Archives: gentoo-dev

From: Ulrich Mueller <ulm@g.o>
To: WANG Xuerui <i.gentoo@×××××.name>
Cc: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [RFC] Plans for a Gentoo/LoongArch port
Date: Tue, 24 Aug 2021 12:17:56
Message-Id: usfyz11g6@gentoo.org
In Reply to: Re: [gentoo-dev] [RFC] Plans for a Gentoo/LoongArch port by WANG Xuerui
1 >>>>> On Tue, 24 Aug 2021, WANG Xuerui wrote:
2
3 > According to their earlier reservation[1] and actual vendor system
4 > behavior, there are 3 possible values:
5
6 > - loongarch64
7 > - loongarch32
8 > - loongarchx32
9
10 > Only the LP64 ABI is fully supported by the current upstream submission.
11 > The "loongarch32" thing might NOT be compatible with the LP64 ABI,
12 > instead it might be something embedded-oriented, even instruction
13 > subsets supported might differ. The "loongarchx32" is for an
14 > n32/x32-like ABI that doesn't exist yet, and probably will never get
15 > implemented.
16
17 > Accordingly, I think we only have to care about "loongarch64" for now.
18
19 > [1]:
20 > https://git.savannah.gnu.org/gitweb/?p=config.git;a=patch;h=c8ddc8472f8efcadafc1ef53ca1d863415fddd5f
21
22 Patch for eselect included below.
23
24 From a49477f39d3f000cc2ca57f18aafbd66656aba05 Mon Sep 17 00:00:00 2001
25 From: =?UTF-8?q?Ulrich=20M=C3=BCller?= <ulm@g.o>
26 Date: Tue, 24 Aug 2021 14:13:08 +0200
27 Subject: [PATCH] Recognise loongarch*/loong in package-manager lib
28 MIME-Version: 1.0
29 Content-Type: text/plain; charset=UTF-8
30 Content-Transfer-Encoding: 8bit
31
32 * libs/package-manager.bash.in (arch): Recognise loongarch*/loong.
33
34 Signed-off-by: Ulrich Müller <ulm@g.o>
35 ---
36 ChangeLog | 4 ++++
37 libs/package-manager.bash.in | 3 ++-
38 2 files changed, 6 insertions(+), 1 deletion(-)
39
40 diff --git a/ChangeLog b/ChangeLog
41 index dfdfe47..f2ea0b6 100644
42 --- a/ChangeLog
43 +++ b/ChangeLog
44 @@ -1,3 +1,7 @@
45 +2021-08-24 Ulrich Müller <ulm@g.o>
46 +
47 + * libs/package-manager.bash.in (arch): Recognise loongarch*/loong.
48 +
49 2021-02-17 Ulrich Müller <ulm@g.o>
50
51 * modules/news.eselect (do_list): Recognise "new" and "all"
52 diff --git a/libs/package-manager.bash.in b/libs/package-manager.bash.in
53 index 35a1e11..c32fcb4 100644
54 --- a/libs/package-manager.bash.in
55 +++ b/libs/package-manager.bash.in
56 @@ -1,5 +1,5 @@
57 # -*-eselect-*- vim: ft=eselect
58 -# Copyright (c) 2005-2020 Gentoo Authors
59 +# Copyright (c) 2005-2021 Gentoo Authors
60 #
61 # This file is part of the 'eselect' tools framework.
62 #
63 @@ -76,6 +76,7 @@ arch() {
64 hppa*) ret=hppa ;;
65 i?86) ret=x86 ;;
66 ia64*) ret=ia64 ;;
67 + loongarch*) ret=loong ;;
68 m68k*) ret=m68k ;;
69 mips*) ret=mips ;;
70 nios2) ret=nios2 ;;
71 --
72 2.33.0