Add riscv64 to efi arches
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
parent
cdbaf4f311
commit
70f1cd0490
|
@ -0,0 +1,39 @@
|
|||
From 3c38c71252d53ad29827b0b8700633b7d3c4e0c6 Mon Sep 17 00:00:00 2001
|
||||
From: rpm-build <rpm-build>
|
||||
Date: Thu, 21 Mar 2024 15:55:34 +0000
|
||||
Subject: [PATCH] Add riscv64 to efi
|
||||
|
||||
---
|
||||
Makefile | 2 +-
|
||||
macros.efi-srpm.in | 2 ++
|
||||
2 files changed, 3 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 37e97a5..166ee97 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -14,7 +14,7 @@ override EFI_ESP_ROOT=/boot/efi
|
||||
endif
|
||||
EFI_ARCHES ?= $(call get-config,arches)
|
||||
ifeq ($(EFI_ARCHES),)
|
||||
-override EFI_ARCHES="x86_64 aarch64 %{arm} %{ix86}"
|
||||
+override EFI_ARCHES="x86_64 aarch64 %{arm} %{ix86} riscv64"
|
||||
endif
|
||||
EFI_VENDOR ?= $(call get-config,vendor)
|
||||
|
||||
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.44.0
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
Summary: Common RPM Macros for building EFI-related packages
|
||||
Name: efi-rpm-macros
|
||||
Version: 5
|
||||
Release: 11%{?dist}
|
||||
Release: 11.0.riscv64%{?dist}
|
||||
License: GPL-3.0-or-later
|
||||
URL: https://github.com/rhboot/%{name}/
|
||||
BuildRequires: git sed
|
||||
|
@ -12,6 +12,7 @@ Source0: https://github.com/rhboot/%{name}/releases/download/%{version}/%{name}-
|
|||
|
||||
Patch0001: 0001-Don-t-have-arm-as-an-alt-arch-of-aarch64.patch
|
||||
Patch0002: 0002-Makefile-fix-permission-on-boot-efi-EFI.patch
|
||||
Patch0003: 0001-Add-riscv64-to-efi.patch
|
||||
|
||||
%global debug_package %{nil}
|
||||
%global _efi_vendor_ %(eval echo $(sed -n -e 's/rhel/redhat/' -e 's/^ID=//p' /etc/os-release))
|
||||
|
@ -40,7 +41,7 @@ machine bootloaders and tools.
|
|||
%autosetup -S git_am -n %{name}-5
|
||||
git config --local --add efi.vendor "%{_efi_vendor_}"
|
||||
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
|
||||
%make_build clean all
|
||||
|
@ -69,6 +70,9 @@ git config --local --add efi.arches "x86_64 aarch64 %{arm} %{ix86}"
|
|||
%dir /boot/efi/EFI/%{_efi_vendor_}
|
||||
|
||||
%changelog
|
||||
* Thu Mar 21 2024 David Abdurachmanov <davidlt@rivosinc.com> - 5-11.0.riscv64
|
||||
- Prepare for riscv64
|
||||
|
||||
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5-11
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
|
|
Loading…
Reference in New Issue