Bug#1059991: grub-installer: build loong64.udeb for loongarch64
Hi Adrian,
> I don't think this is true since the grub2 source is actually
not building
> any loong64 packages yet. We will need to change the grub2
source first to
> build at packages such as grub-efi-loong64 and so on similar
to riscv64 [1].
>
> After that, loong64 can be added to grub-installer as it was
be done for
> riscv64 [2] (except for the case for "riscv64/*)").
Thanks for your heads up.
I have updated the patch (Add support for loongarch64).
Please consider the patch I have attached.
Your suggestions are always welcome.
Thanks,
Dandan Zhang
diff -Nru grub-installer-1.200/debian/control grub-installer-1.200/debian/control
--- grub-installer-1.200/debian/control 2024-02-16 18:45:32.000000000 +0000
+++ grub-installer-1.200/debian/control 2024-02-16 19:25:38.000000000 +0000
@@ -8,7 +8,7 @@
Vcs-Git: https://salsa.debian.org/installer-team/grub-installer.git
Package: grub-installer
-Architecture: amd64 arm64 armhf i386 ia64 hurd-i386 hurd-amd64 kfreebsd-i386 kfreebsd-amd64 mipsel powerpc ppc64 ppc64el riscv64 sparc sparc64
+Architecture: amd64 arm64 armhf i386 ia64 hurd-i386 hurd-amd64 kfreebsd-i386 kfreebsd-amd64 loong64 mipsel powerpc ppc64 ppc64el riscv64 sparc sparc64
XB-Subarchitecture: ${subarch}
Provides: bootable-system
Depends: ${shlibs:Depends}, ${misc:Depends}, kernel-installer, created-fstab, di-utils, di-utils-mapdevfs, os-prober, partman-utils
diff -Nru grub-installer-1.200/debian/isinstallable grub-installer-1.200/debian/isinstallable
--- grub-installer-1.200/debian/isinstallable 2024-02-16 18:45:32.000000000 +0000
+++ grub-installer-1.200/debian/isinstallable 2024-02-16 19:25:38.000000000 +0000
@@ -33,6 +33,12 @@
log "GRUB is only usable on EFI riscv64 systems, not $ARCH"
exit 1
;;
+ loong64/efi)
+ ;;
+ loong64/*)
+ log "GRUB is only usable on EFI loong64 systems, not $ARCH"
+ exit 1
+ ;;
esac
db_get grub-installer/skip
diff -Nru grub-installer-1.200/grub-installer grub-installer-1.200/grub-installer
--- grub-installer-1.200/grub-installer 2024-02-16 18:45:33.000000000 +0000
+++ grub-installer-1.200/grub-installer 2024-02-16 19:25:38.000000000 +0000
@@ -354,6 +354,9 @@
ia64/*)
grub_package="grub-efi-ia64"
;;
+ loong64/efi)
+ grub_package="grub-efi-loong64"
+ ;;
powerpc/*|ppc64/*)
grub_package="grub-ieee1275"
;;
Reply to: