From c2de704929497b7964a1a9f6ee09f7a653d3d928 Mon Sep 17 00:00:00 2001 From: ouuleilei Date: Thu, 30 May 2024 11:18:03 +0800 Subject: [PATCH] add riscv64 support --- 0001-add-riscv64-support-for-efi-arch.patch | 25 +++++++++++++++++++++ efi-rpm-macros.spec | 8 +++++-- 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 0001-add-riscv64-support-for-efi-arch.patch diff --git a/0001-add-riscv64-support-for-efi-arch.patch b/0001-add-riscv64-support-for-efi-arch.patch new file mode 100644 index 0000000..bbcb30d --- /dev/null +++ b/0001-add-riscv64-support-for-efi-arch.patch @@ -0,0 +1,25 @@ +From 9befa934b3fc15217c9080a29b4dc607cdeef380 Mon Sep 17 00:00:00 2001 +From: ouuleilei +Date: Wed, 29 May 2024 22:29:59 +0800 +Subject: [PATCH] add riscv64 support for efi arch + +--- + macros.efi-srpm.in | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/macros.efi-srpm.in b/macros.efi-srpm.in +index 00503f1..7f258c7 100644 +--- a/macros.efi-srpm.in ++++ b/macros.efi-srpm.in +@@ -37,6 +37,8 @@ + return("aa64") + elseif arch("%{arm}") then + return("arm") ++ elseif arch("riscv64") then ++ return("riscv64") + else + return("none") + end +-- +2.41.0 + diff --git a/efi-rpm-macros.spec b/efi-rpm-macros.spec index c830069..48f1b83 100644 --- a/efi-rpm-macros.spec +++ b/efi-rpm-macros.spec @@ -4,7 +4,7 @@ Name: efi-rpm-macros Version: 4 -Release: 9 +Release: 10 Summary: A set of EFI-related RPM Macros License: GPLv3+ URL: https://github.com/rhboot/%{name}/ @@ -16,6 +16,7 @@ Patch0: add-loongarch64-support-for-efi-arch.patch %ifarch sw_64 Patch1: efi-rpm-macros-Add-sw64-architecture.patch %endif +Patch2: 0001-add-riscv64-support-for-efi-arch.patch BuildRequires: git sed BuildArch: noarch @@ -45,7 +46,7 @@ machine bootloaders and tools. %autosetup -S git -n %{name}-4 git config --local --add efi.vendor "%{_vendor}" git config --local --add efi.esp-root /boot/efi -git config --local --add efi.arches "x86_64 aarch64 loongarch64 sw_64" +git config --local --add efi.arches "x86_64 aarch64 loongarch64 sw_64 riscv64" %build %make_build EFI_VENDOR=%{_efi_vendor_} clean all @@ -65,6 +66,9 @@ git config --local --add efi.arches "x86_64 aarch64 loongarch64 sw_64" %{_prefix}/lib/rpm/brp-boot-efi-times %changelog +* Wed May 29 2024 Ouuleilei - 4-10 +- Add riscv64 architecture + * Tue Nov 29 2022 wuzx - 4-9 - Add sw64 architecture -- Gitee