Bug#1066023: libdebian-installer: Add subarch detection for loongarch64
Source: libdebian-installer
Version: 0.124
Severity: wishlist
Tags: patch
User: debian-loongarch@lists.debian.org
Usertags: loong64
Dear maintainers,
I have added subarch detection for loongarch64 in libdebian-installer
source package.
Please consider the patch I have attached.
The libdebian-installer source package was compiled successfully on my
local loong64 rootfs environment.
If you have any questions, you can contact me at any time.
thanks,
Dandan Zhang
diff -Nru libdebian-installer-0.124/src/system/Makefile.am libdebian-installer-0.124/src/system/Makefile.am
--- libdebian-installer-0.124/src/system/Makefile.am 2021-02-08 12:52:58.000000000 +0000
+++ libdebian-installer-0.124/src/system/Makefile.am 2022-10-02 02:14:09.000000000 +0000
@@ -22,6 +22,7 @@
subarch-armeb-linux.c \
subarch-armel-linux.c \
subarch-armhf-linux.c \
+ subarch-loongarch64-linux.c \
subarch-m68k-linux.c \
subarch-mips-linux.c \
subarch-mipsel-linux.c \
diff -Nru libdebian-installer-0.124/src/system/subarch-loongarch64-linux.c libdebian-installer-0.124/src/system/subarch-loongarch64-linux.c
--- libdebian-installer-0.124/src/system/subarch-loongarch64-linux.c 1970-01-01 00:00:00.000000000 +0000
+++ libdebian-installer-0.124/src/system/subarch-loongarch64-linux.c 2022-10-02 02:14:09.000000000 +0000
@@ -0,0 +1,29 @@
+/*
+ * subarch-loongarch64-linux.c
+ *
+ * Copyright (C) 2023
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include <debian-installer/system/subarch.h>
+#include <debian-installer/system/efi.h>
+
+const char *di_system_subarch_analyze(void)
+{
+ if (di_system_is_efi())
+ return "efi";
+ else
+ return "generic";
+}
Reply to: