[PATCH] configure: add support for loongarch64

20 views
Skip to first unread message

Quirin Gylstorff

unread,
Jan 18, 2024, 5:04:55 AM1/18/24
to zhang...@loongson.cn, efibootg...@googlegroups.com, jan.k...@siemens.com
From: Dandan Zhang <zhang...@loongson.cn>

This adds loongarch64 support.

Signed-off-by: Quirin Gylstorff <quirin.g...@siemens.com>
---
Hi,

this was send with Debian bug
1060884.https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1060886.

Kind regards
Quirin

configure.ac | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/configure.ac b/configure.ac
index b000603..489027f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -88,6 +88,7 @@ SET_ARCH(IA64, ia64*)
SET_ARCH(AARCH64, aarch64*)
SET_ARCH(ARM, arm*)
SET_ARCH(RISCV64, riscv64*)
+SET_ARCH(LOONGARCH64, loongarch64*)

ARCH=$(echo $host | sed "s/\(-\).*$//")

@@ -107,6 +108,9 @@ AM_COND_IF(ARCH_ARM, [
AM_COND_IF(ARCH_RISCV64, [
MACHINE_TYPE_NAME=riscv64])

+AM_COND_IF(ARCH_LOONGARCH64, [
+ MACHINE_TYPE_NAME=loongarch64])
+
AC_SUBST([ARCH])
AC_SUBST([MACHINE_TYPE_NAME])
AM_CONDITIONAL([ARCH_IS_X86], [test "$ARCH" = "ia32" -o "$ARCH" = "x86_64"])
--
2.43.0

Jan Kiszka

unread,
Jan 18, 2024, 8:11:59 AM1/18/24
to Quirin Gylstorff, zhang...@loongson.cn, efibootg...@googlegroups.com
Thanks. Can we add this arch to CI as well? Have a look at
.github/workflows/main.yaml for this.

Jan

--
Siemens AG, Technology
Linux Expert Center

Jan Kiszka

unread,
Jan 19, 2024, 7:08:08 AM1/19/24
to Quirin Gylstorff, zhang...@loongson.cn, efibootg...@googlegroups.com
On 18.01.24 14:11, 'Jan Kiszka' via EFI Boot Guard wrote:
> On 18.01.24 11:04, 'Quirin Gylstorff' via EFI Boot Guard wrote:
>> From: Dandan Zhang <zhang...@loongson.cn>
>>
>> This adds loongarch64 support.
>>
>> Signed-off-by: Quirin Gylstorff <quirin.g...@siemens.com>

I need Dandan's signed off as well.
OK, looks like I'm requesting something so far impossible here: There
are no apparently no pre-packaged toolchains nor other build
dependencies for that Ubuntu image github is giving us.

I can merge this as-is (minus the formal thing above), but I would not
claim this arch as being officially supported by EBG yet.
Reply all
Reply to author
Forward
0 new messages