diff --git a/grub.macros b/grub.macros index 2d93fd004c3fc091f6d40aec89f87a1eb2463033..73003763288580f273176547ae8f9b4d4dce819b 100644 --- a/grub.macros +++ b/grub.macros @@ -529,6 +529,9 @@ install -m 700 %{3} $RPM_BUILD_ROOT%{efi_esp_dir}/%{3} \ %ifarch %{arm} \ install -D -m 700 %{2} $RPM_BUILD_ROOT%{efi_esp_boot}/BOOTARM.EFI \ %endif \ +%ifarch riscv64 \ +install -D -m 700 %{2} $RPM_BUILD_ROOT%{efi_esp_boot}/BOOTRISCV64.EFI \ +%endif \ install -D -m 700 unicode.pf2 \\\ ${RPM_BUILD_ROOT}/boot/%{name}/fonts/unicode.pf2 \ ${RPM_BUILD_ROOT}/%{_bindir}/%{name}-editenv \\\ @@ -628,6 +631,9 @@ ln -s ../boot/%{name}/grub.cfg \\\ %ifarch %{arm} \ %attr(0700,root,root)%{efi_esp_boot}/BOOTARM.EFI \ %endif \ +%ifarch riscv64 \ +%attr(0700,root,root)%{efi_esp_boot}/BOOTRISCV64.EFI \ +%endif \ %attr(0700,root,root)/boot/%{name}/fonts \ %dir %attr(0700,root,root)/boot/loader/entries \ %ghost %config(noreplace) /boot/%{name}/grub.cfg \ diff --git a/grub2.spec b/grub2.spec index 3e561cb110545ce623b4f5316904bd174c90318f..0b9a9a24ab691ec2b61746b616aaa1bb10e107d2 100644 --- a/grub2.spec +++ b/grub2.spec @@ -1,4 +1,4 @@ -%define anolis_release 13 +%define anolis_release 14 %global _lto_cflags %{nil} %undefine _hardened_build @@ -506,6 +506,9 @@ mv ${EFI_HOME}/grub.cfg.stb ${EFI_HOME}/grub.cfg %endif %changelog +* Sat Jul 05 2025 Jessica Liu - 2.12-14 +- Support BOOTRISCV64.EFI + * Thu Jun 5 2025 Xue Liu - 2.12-13 - Disable vector instructions for loongarch