Skip to content

Commit

Permalink
feat: add MIPS Loongson "LEFI" support
Browse files Browse the repository at this point in the history
AOSC-Tracking/grub @ aosc/grub-2.12, ported to Debian sources.
  • Loading branch information
MingcongBai committed Jan 16, 2025
1 parent 492ed59 commit d3b698f
Show file tree
Hide file tree
Showing 16 changed files with 4,442 additions and 9 deletions.
8 changes: 8 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
grub2 (2.12-1deepin15) unstable; urgency=medium

* Add MIPS Loongson "LEFI" support.
* AOSC-Tracking/grub @ aosc/grub-2.12, ported to Debian sources.
* Introduce grub-efi-mips64el* for MIPS Loongson "LEFI" systems.

-- Mingcong Bai <[email protected]> Tue, 14 Jan 2025 14:04:00 +0800

grub2 (2.12-1deepin14) unstable; urgency=medium

* Support use confidential computing provisioned secrets for disk decryption
Expand Down
60 changes: 55 additions & 5 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ Description: GRand Unified Bootloader, version 2 (dummy package)
This is a dummy transitional package that depends on grub-coreboot.

Package: grub-efi
Architecture: any-i386 any-amd64 any-arm64 any-ia64 any-arm any-riscv64 any-loong64
Architecture: any-i386 any-amd64 any-arm64 any-ia64 any-arm any-riscv64 any-loong64 any-mips64el
Pre-Depends: ${misc:Pre-Depends}
Depends: ${misc:Depends}, grub-efi-ia32 (= ${binary:Version}) [any-i386], grub-efi-amd64 (= ${binary:Version}) [any-amd64], grub-efi-arm64 (= ${binary:Version}) [any-arm64], grub-efi-ia64 (= ${binary:Version}) [any-ia64], grub-efi-arm (= ${binary:Version}) [any-arm], grub-efi-riscv64 (= ${binary:Version}) [any-riscv64], grub-efi-loong64 (= ${binary:Version}) [any-loong64]
Depends: ${misc:Depends}, grub-efi-ia32 (= ${binary:Version}) [any-i386], grub-efi-amd64 (= ${binary:Version}) [any-amd64], grub-efi-arm64 (= ${binary:Version}) [any-arm64], grub-efi-ia64 (= ${binary:Version}) [any-ia64], grub-efi-arm (= ${binary:Version}) [any-arm], grub-efi-riscv64 (= ${binary:Version}) [any-riscv64], grub-efi-loong64 (= ${binary:Version}) [any-loong64], grub-efi-misp64el (= ${binary:Version}) [any-mips64el]
Multi-Arch: foreign
Description: GRand Unified Bootloader, version 2 (dummy package)
This is a dummy package that depends on the grub-efi-$ARCH package most likely
Expand All @@ -77,7 +77,7 @@ Built-Using: ${Built-Using}
Depends: ${shlibs:Depends}, ${misc:Depends}, gettext-base, ${lsb-base-depends}
Replaces: grub-pc (<< 2.00-4), grub-ieee1275 (<< 2.00-4), grub-efi (<< 1.99-1), grub-coreboot (<< 2.00-4), grub-linuxbios (<< 1.96+20080831-1), grub-efi-ia32 (<< 2.00-4), grub-efi-amd64 (<< 2.00-4), grub-efi-ia64 (<< 2.00-4), grub-yeeloong (<< 2.00-4), init-select
Recommends: os-prober (>= 1.33)
Suggests: multiboot-doc, grub-emu [any-i386 any-amd64 any-powerpc], mtools [any-i386 any-amd64 any-ia64 any-arm any-arm64 riscv64 loong64], xorriso (>= 0.5.6.pl00), desktop-base (>= 4.0.6), console-setup
Suggests: multiboot-doc, grub-emu [any-i386 any-amd64 any-powerpc], mtools [any-i386 any-amd64 any-ia64 any-arm any-arm64 riscv64 loong64 mips64el], xorriso (>= 0.5.6.pl00), desktop-base (>= 4.0.6), console-setup
Conflicts: init-select
# mdadm: See bugs #435983 and #455746
Breaks: mdadm (<< 2.6.7-2), lupin-support (<< 0.55), friendly-recovery (<< 0.2.13), apport (<< 2.1.1)
Expand All @@ -94,7 +94,7 @@ Package: grub2-common
# Not Architecture: any because this package contains some things which are
# only built when there is a real platform (e.g. grub-install), and the rest
# of the package is not very useful in a utilities-only build.
Architecture: any-i386 any-amd64 any-powerpc any-ppc64 any-ppc64el any-sparc any-sparc64 any-mipsel any-ia64 any-arm any-arm64 any-riscv64 any-loong64
Architecture: any-i386 any-amd64 any-powerpc any-ppc64 any-ppc64el any-sparc any-sparc64 any-mipsel any-ia64 any-arm any-arm64 any-riscv64 any-loong64 any-mips64el
Depends: grub-common (= ${binary:Version}), dpkg (>= 1.15.4), ${shlibs:Depends}, ${misc:Depends}
Replaces: grub, grub-legacy, ${legacy-doc-br}, grub-common (<< 1.99-1), grub-pc (<< 2.02+dfsg1-7), grub-coreboot (<< 2.02+dfsg1-7), grub-efi-ia32 (<< 2.02+dfsg1-7), grub-efi-amd64 (<< 2.02+dfsg1-7), grub-efi-ia64 (<< 2.02+dfsg1-7), grub-efi-arm (<< 2.02+dfsg1-7), grub-efi-arm64 (<< 2.02+dfsg1-7), grub-ieee1275 (<< 2.02+dfsg1-7), grub-uboot (<< 2.02+dfsg1-7), grub-xen (<< 2.02+dfsg1-7), grub-yeeloong (<< 2.02+dfsg1-7), grub-cloud-amd64 (<< 0.0.4)
Conflicts: grub-legacy
Expand Down Expand Up @@ -632,6 +632,56 @@ Description: GRand Unified Bootloader, version 2 (loong64 UEFI version)
use on Loongarch 64-bit systems with UEFI. Installing this package indicates that
this version of GRUB should be the active boot loader.

Package: grub-efi-mips64el-bin
Architecture: any-mips64el
Depends: ${shlibs:Depends}, ${misc:Depends}, grub-common
Recommends: efibootmgr [linux-any]
Multi-Arch: foreign
XB-Efi-Vendor: ${efi:Vendor}
Description: GRand Unified Bootloader, version 2 (MIPS Loongson LEFI modules)
GRUB is a portable, powerful bootloader. This version of GRUB is based on a
cleaner design than its predecessors, and provides the following new features:
.
- Scripting in grub.cfg using BASH-like syntax.
- Support for modern partition maps such as GPT.
- Modular generation of grub.cfg via update-grub. Packages providing GRUB
add-ons can plug in their own script rules and trigger updates by invoking
update-grub.
.
This package contains GRUB modules that have been built for use on MIPS
Loongson systems with LEFI. It can be installed in parallel with other
flavours, but will not automatically install GRUB as the active boot loader
nor automatically update grub.cfg on upgrade unless grub-efi-mips64el is also
installed.

Package: grub-efi-mips64el-dbg
Section: debug
Architecture: any-mips64el
Depends: ${misc:Depends}, grub-efi-mips64el-bin (= ${binary:Version})
Multi-Arch: foreign
Description: GRand Unified Bootloader, version 2 (MIPS Loongson LEFI debug files)
This package contains debugging files for grub-efi-mips64el-bin. You only
need these if you are trying to debug GRUB using its GDB stub.

Package: grub-efi-mips64el
Architecture: any-mips64el
Pre-Depends: ${misc:Pre-Depends}
Depends: ${shlibs:Depends}, ${misc:Depends}, grub2-common, grub-efi-mips64el-bin (= ${binary:Version}), ucf
Multi-Arch: foreign
Description: GRand Unified Bootloader, version 2 (MIPS Loongson LEFI version)
GRUB is a portable, powerful bootloader. This version of GRUB is based on a
cleaner design than its predecessors, and provides the following new features:
.
- Scripting in grub.cfg using BASH-like syntax.
- Support for modern partition maps such as GPT.
- Modular generation of grub.cfg via update-grub. Packages providing GRUB
add-ons can plug in their own script rules and trigger updates by invoking
update-grub.
.
This is a dependency package for a version of GRUB that has been built for
use on MIPS Loongson systems with LEFI. Installing this package indicates that
this version of GRUB should be the active boot loader.

Package: grub-ieee1275-bin
Architecture: any-i386 any-amd64 any-powerpc any-ppc64 any-ppc64el any-sparc any-sparc64
Depends: ${shlibs:Depends}, ${misc:Depends}, grub-common (= ${binary:Version})
Expand Down Expand Up @@ -871,7 +921,7 @@ Description: GRand Unified Bootloader, version 2 (Yeeloong version)
Package: grub-theme-starfield
# Could be Architecture: any, but in practice this package is useless in a
# utilities-only build.
Architecture: any-i386 any-amd64 any-powerpc any-ppc64 any-ppc64el any-sparc any-sparc64 any-mipsel any-ia64 any-arm any-arm64 any-riscv64 any-loong64
Architecture: any-i386 any-amd64 any-powerpc any-ppc64 any-ppc64el any-sparc any-sparc64 any-mipsel any-ia64 any-arm any-arm64 any-riscv64 any-loong64 any-mips64el
Depends: ${misc:Depends}, grub-common (= ${binary:Version})
Multi-Arch: foreign
Description: GRand Unified Bootloader, version 2 (starfield theme)
Expand Down
Loading

0 comments on commit d3b698f

Please sign in to comment.