Add riscv64 to EFI architectures

Thanks to Andrea Bolognani <abologna@redhat.com> 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 <kchamart@redhat.com>
This commit is contained in:
Kashyap Chamarthy 2025-04-04 22:29:25 +02:00
parent 1d496f56ce
commit ceb363f6ee

View File

@ -38,7 +38,7 @@ machine bootloaders and tools.
%autosetup -S git_am -n %{name}-6 %autosetup -S git_am -n %{name}-6
git config --local --add efi.vendor "%{_efi_vendor_}" git config --local --add efi.vendor "%{_efi_vendor_}"
git config --local --add efi.esp-root /boot/efi 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 %build
%make_build clean all %make_build clean all