Add support for RISCV64

This commit is contained in:
Andrew Lukoshko 2026-02-23 15:19:59 +00:00
parent 87bbdfe5d2
commit 7d0f17a055
5 changed files with 30 additions and 2 deletions

4
.gitignore vendored
View File

@ -6,4 +6,8 @@
/fbaa64.efi
/mmaa64.efi
/shimaa64.efi
/BOOTRISCV64.CSV
/shimriscv64.efi
/mmriscv64.efi
/fbriscv64.efi
SOURCES/almalinuxsecurebootca0.cer

View File

@ -2,3 +2,4 @@ shim-aa64
shim-arm
shim-ia32
shim-x64
shim-riscv64

View File

@ -8,30 +8,37 @@
%global bootcsvaa64 %{expand:%{SOURCE10}}
%global bootcsvx64 %{expand:%{SOURCE12}}
#%%global bootcsvarm %%{expand:%%{SOURCE13}}
%global bootcsvriscv64 %{expand:%{SOURCE14}}
%global shimefiaa64 %{expand:%{SOURCE20}}
%global shimefix64 %{expand:%{SOURCE22}}
#%%global shimefiarm %%{expand:%%{SOURCE23}
%global shimefiriscv64 %{expand:%{SOURCE24}}
%global fbefiaa64 %{expand:%{SOURCE30}}
%global fbefix64 %{expand:%{SOURCE32}}
#%%global fbefiarm %%{expand:%%{SOURCE33}
%global fbefiriscv64 %{expand:%{SOURCE34}}
%global mmefiaa64 %{expand:%{SOURCE40}}
%global mmefix64 %{expand:%{SOURCE42}}
#%%global mmefiarm %%{expand:%%{SOURCE43}
%global mmefiriscv64 %{expand:%{SOURCE44}}
%global shimveraa64 15.8-2.el9.alma.1
%global shimverx64 15.8-2.el9.alma.1
#%%global shimverarm 15-1.el8
%global shimverriscv64 15.8-3.el10.alma.1
%global shimdiraa64 %{_datadir}/shim/%{shimveraa64}/aa64
%global shimdirx64 %{_datadir}/shim/%{shimverx64}/x64
#%%global shimdirarm %%{_datadir}/shim/%%{shimverarm}/arm
%global shimdirriscv64 %{_datadir}/shim/%{shimverriscv64}/riscv64
%global unsignedaa64 shim-unsigned-aarch64
%global unsignedx64 shim-unsigned-x64
#%%global unsignedarm shim-unsigned-arm
%global unsignedriscv64 shim-unsigned-riscv64
%global bootcsv %{expand:%{bootcsv%{efi_arch}}}
%global bootcsvalt %{expand:%{bootcsv%{?efi_alt_arch}}}
@ -188,7 +195,12 @@ install -m 0700 fb%{-a*}.efi \\\
%global is_alt_signed no
%global provide_legacy_shim 1
%endif
%ifnarch %{x86_64} aarch64
%ifarch riscv64
%global is_signed no
%global is_alt_signed no
%global provide_legacy_shim 1
%endif
%ifnarch %{x86_64} aarch64 riscv64
%global is_signed no
%global is_alt_signed no
%global provide_legacy_shim 0

View File

@ -4,7 +4,7 @@
Name: shim
Version: 15.8
Release: 6%{?dist}.alma.1
Release: 6%{?dist}.alma.2
Summary: First-stage UEFI bootloader
License: BSD
URL: https://github.com/rhboot/shim/
@ -33,6 +33,10 @@ Source42: fbx64.efi
#Source23: shimarm.efi
#Source33: mmarm.efi
#Source43: fbarm.efi
Source14: BOOTRISCV64.CSV
Source24: shimriscv64.efi
Source34: mmriscv64.efi
Source44: fbriscv64.efi
%include %{SOURCE0}
@ -111,6 +115,9 @@ install -m 0644 %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/dnf/protected.d/
%endif
%changelog
* Mon Feb 23 2026 Andrew Lukoshko <alukoshko@almalinux.org> - 15.8-6.alma.2
- Add support for RISCV64
* Fri Aug 15 2025 Eduard Abdullin <eabdullin@almalinux.org> - 15.8-6.alma.1
- Add SB for aarch64
- AlmaLinux changes

View File

@ -11,3 +11,7 @@ SHA512 (mmx64.efi) = e843d1f245cc221c6f4dcfa557d6b558064d2632a24ad47aeaff44e6a93
SHA512 (shimaa64.efi) = 64bda0d6266e462a265dd3cf9e8b03c242a73f7f69477927d30d72c9254b2cf8e4ddde21994f8ae87f80aaa49715ab0ed9b5143fd29d57f21c6d34fa4e204e96
SHA512 (shimia32.efi) = 50631c93e23fde6c34e89c4889b8407bcfe341e7406965e5289e519f720a79e9c2d286c851e5c47d0f5cb52d3406594a63b215526932e9483f745f3794b46bdf
SHA512 (shimx64.efi) = c568413747d83e24f7be27beec25dcb58952993dfbb4caaffb5403120a51a2c16500f713929f205915ee32a7736a49cc16c5b1c22b82200d59db8c9d5ba2d378
SHA512 (BOOTRISCV64.CSV) = eedf8c4075f1a0ef43b3d14564f48ca2f82905f8ded20761f0b137263743c7b1ed3da9578ec05845123e1cd5bda73a2b37285213f7228a7ea135a9a5b8fd1de8
SHA512 (shimriscv64.efi) = 0bafbde4edf6cd4a2d7fb3615c5c0da34fa1fb98dc15ba18668cdc45ada0cad20e137817a39da9a3e4aa9aaf61d91c7decff8d940dae0eefb82878d016a092eb
SHA512 (mmriscv64.efi) = 0c41de8fbcdcf06f39e2763dd7888c01166cee98d17c47c920d65579446e7261baa83bbdad4860d038810c10e18221653bde181da7c7379db6e0f97b069216f7
SHA512 (fbriscv64.efi) = 8b9350fe3dafef9f45d7d5905990b6ebe9a09181043cabe9669936f44c9c8d73fbea75d1c372ab45ee64a1e989d4f304b9602dcb1f60332e6ae134aa2dcb8a42