[pkg-go] Bug#1062598: libpod: Add support for LoongArch

JiaLing Zhang zhangjialing at loongson.cn
Fri Feb 2 04:40:08 GMT 2024


Source: libpod
Version: 4.9.0+ds1-2
Severity: normal
Tags: patch
X-Debbugs-Cc: zhangjialing at loongson.cn

Dear Maintainer,

Please help to add support for loong64.I have build it in my local
machine.


-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
-------------- next part --------------
--- libpod-4.9.0+ds1.orig/Makefile
+++ libpod-4.9.0+ds1/Makefile
@@ -164,6 +164,7 @@ CROSS_BUILD_TARGETS := \
 	bin/podman.cross.linux.arm64 \
 	bin/podman.cross.linux.386 \
 	bin/podman.cross.linux.s390x \
+	bin/podman.cross.linux.loong64 \
 	bin/podman.cross.linux.mips \
 	bin/podman.cross.linux.mipsle \
 	bin/podman.cross.linux.mips64 \
--- libpod-4.9.0+ds1.orig/pkg/machine/fcos.go
+++ libpod-4.9.0+ds1/pkg/machine/fcos.go
@@ -91,6 +91,8 @@ func GetFcosArch() string {
 		arch = "aarch64"
 	case "riscv64":
 		arch = "riscv64"
+	case "loong64":
+		arch = "loongarch64"
 	default:
 		arch = "x86_64"
 	}


More information about the Pkg-go-maintainers mailing list