diff --git a/efi-rpm-macros-Add-sw64-architecture.patch b/efi-rpm-macros-Add-sw64-architecture.patch new file mode 100644 index 0000000000000000000000000000000000000000..3c54c1ad05d7868fba74d45bad22dbf2136ca0b0 --- /dev/null +++ b/efi-rpm-macros-Add-sw64-architecture.patch @@ -0,0 +1,26 @@ +From 2d977a8424d0a25c4650865224d1494a709ce25a Mon Sep 17 00:00:00 2001 +From: Wu Zixuan +Date: Fri, 2 Dec 2022 08:58:46 +0800 +Subject: [PATCH] Add sw64 architecture + +Signed-off-by: Wu Zixuan +--- + macros.efi-srpm.in | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/macros.efi-srpm.in b/macros.efi-srpm.in +index 00503f1..e33a54d 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("%{sw_64}") then ++ return("sw_64") + else + return("none") + end +-- +2.33.0 + diff --git a/efi-rpm-macros.spec b/efi-rpm-macros.spec index bd1211c66e9055c91c7634510c06fcc7a897f805..c8300694a8a4f7edf0614f7900695f217f3089f6 100644 --- a/efi-rpm-macros.spec +++ b/efi-rpm-macros.spec @@ -4,7 +4,7 @@ Name: efi-rpm-macros Version: 4 -Release: 8 +Release: 9 Summary: A set of EFI-related RPM Macros License: GPLv3+ URL: https://github.com/rhboot/%{name}/ @@ -13,6 +13,9 @@ Source0: https://github.com/rhboot/%{name}/archive/%{version}.tar.gz#/%{na %ifarch loongarch64 Patch0: add-loongarch64-support-for-efi-arch.patch %endif +%ifarch sw_64 +Patch1: efi-rpm-macros-Add-sw64-architecture.patch +%endif BuildRequires: git sed BuildArch: noarch @@ -42,7 +45,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" +git config --local --add efi.arches "x86_64 aarch64 loongarch64 sw_64" %build %make_build EFI_VENDOR=%{_efi_vendor_} clean all @@ -62,6 +65,9 @@ git config --local --add efi.arches "x86_64 aarch64 loongarch64" %{_prefix}/lib/rpm/brp-boot-efi-times %changelog +* Tue Nov 29 2022 wuzx - 4-9 +- Add sw64 architecture + * Thu Nov 24 2022 yanglu - 4-8 - DESC:add loongarch64 support for efi_arch