From ceb363f6eeb989cdea1da74e33ff8f13b3cd39f0 Mon Sep 17 00:00:00 2001 From: Kashyap Chamarthy Date: Fri, 4 Apr 2025 22:29:25 +0200 Subject: [PATCH] Add riscv64 to EFI architectures Thanks to Andrea Bolognani for reporting this. He writes (I slightly tweaked the formatting): "Without it, rpm --eval '%{efi}' doesn't return the correct value and e.g. 'shim' refuses to build because of ExcludeArch. If you build the package with and without that change, then compare the contents, the issue becomes obvious" Fix it by adding 'riscv64' to the EFI Git config efi.arches. Signed-off-by: Kashyap Chamarthy --- efi-rpm-macros.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/efi-rpm-macros.spec b/efi-rpm-macros.spec index f81e0a8..22b5419 100644 --- a/efi-rpm-macros.spec +++ b/efi-rpm-macros.spec @@ -38,7 +38,7 @@ machine bootloaders and tools. %autosetup -S git_am -n %{name}-6 git config --local --add efi.vendor "%{_efi_vendor_}" git config --local --add efi.esp-root /boot/efi -git config --local --add efi.arches "x86_64 aarch64 %{arm} %{ix86}" +git config --local --add efi.arches "x86_64 aarch64 %{arm} %{ix86} riscv64" %build %make_build clean all