!26 add loongarch64 support for efi_arch

From: @yangl777 
Reviewed-by: @t_feng 
Signed-off-by: @t_feng
This commit is contained in:
openeuler-ci-bot 2022-11-28 01:37:20 +00:00 committed by Gitee
commit 127341ef79
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 34 additions and 3 deletions

View 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

View File

@ -4,13 +4,16 @@
Name: efi-rpm-macros
Version: 4
Release: 7
Release: 8
Summary: A set of EFI-related RPM Macros
License: GPLv3+
URL: https://github.com/rhboot/%{name}/
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
BuildArch: noarch
@ -59,7 +62,10 @@ git config --local --add efi.arches "x86_64 aarch64 loongarch64"
%{_prefix}/lib/rpm/brp-boot-efi-times
%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
* Thu Jun 16 2022 yanglu <yanglu72@h-partners.com> - 4-6