add loongarch64 support for efi_arch
This commit is contained in:
parent
4d71415542
commit
53c8bb9aa8
25
add-loongarch64-support-for-efi-arch.patch
Normal file
25
add-loongarch64-support-for-efi-arch.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From 121dc2cdef4532106e390f6eb2be4eb64ef1d511 Mon Sep 17 00:00:00 2001
|
||||||
|
From: yanglu <yanglu@h-partners.com>
|
||||||
|
Date: Mon, 21 Nov 2022 15:37:03 +0800
|
||||||
|
Subject: [PATCH] add loongarch64 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..fbeb2c0 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("loongarch64") then
|
||||||
|
+ return("loongarch64")
|
||||||
|
else
|
||||||
|
return("none")
|
||||||
|
end
|
||||||
|
--
|
||||||
|
2.33.0
|
||||||
|
|
||||||
@ -4,13 +4,16 @@
|
|||||||
|
|
||||||
Name: efi-rpm-macros
|
Name: efi-rpm-macros
|
||||||
Version: 4
|
Version: 4
|
||||||
Release: 7
|
Release: 8
|
||||||
Summary: A set of EFI-related RPM Macros
|
Summary: A set of EFI-related RPM Macros
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
URL: https://github.com/rhboot/%{name}/
|
URL: https://github.com/rhboot/%{name}/
|
||||||
Source0: https://github.com/rhboot/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
Source0: https://github.com/rhboot/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
#patch backport from upstream community
|
%ifarch loongarch64
|
||||||
|
Patch0: add-loongarch64-support-for-efi-arch.patch
|
||||||
|
%endif
|
||||||
|
|
||||||
BuildRequires: git sed
|
BuildRequires: git sed
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
@ -59,7 +62,10 @@ git config --local --add efi.arches "x86_64 aarch64 loongarch64"
|
|||||||
%{_prefix}/lib/rpm/brp-boot-efi-times
|
%{_prefix}/lib/rpm/brp-boot-efi-times
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Sat Nov 19 Wenlong Zhang <zhangwenlong@loongson.cn> - 4-7
|
* Thu Nov 24 2022 yanglu <yanglu72@h-partners.com> - 4-8
|
||||||
|
- DESC:add loongarch64 support for efi_arch
|
||||||
|
|
||||||
|
* Sat Nov 19 2022 Wenlong Zhang <zhangwenlong@loongson.cn> - 4-7
|
||||||
- add loongarch support for efi-rpm-macros
|
- add loongarch support for efi-rpm-macros
|
||||||
|
|
||||||
* Thu Jun 16 2022 yanglu <yanglu72@h-partners.com> - 4-6
|
* Thu Jun 16 2022 yanglu <yanglu72@h-partners.com> - 4-6
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user