Compare commits
6 Commits
ef0f16985e
...
70f1cd0490
Author | SHA1 | Date |
---|---|---|
David Abdurachmanov | 70f1cd0490 | |
Fedora Release Engineering | cdbaf4f311 | |
Fedora Release Engineering | 75576aa00c | |
Nicolas Frayer | 112ca15559 | |
Fedora Release Engineering | a492cc217a | |
Sandro Bonazzola | 1981b64dc3 |
|
@ -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
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
From 110b9c24200ff90c5d09cc2bf41df728810a0e0e Mon Sep 17 00:00:00 2001
|
||||
From: Sandro Bonazzola <sbonazzo@redhat.com>
|
||||
Date: Wed, 3 May 2023 11:20:36 +0200
|
||||
Subject: [PATCH] Makefile: fix permission on /boot/efi/EFI
|
||||
|
||||
Ensure /boot/efi/EFI is created with 0700 mode.
|
||||
|
||||
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=2144459
|
||||
|
||||
Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
|
||||
---
|
||||
Makefile | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 7d56eae..37e97a5 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -65,6 +65,7 @@ install : $(TARGETS)
|
||||
install -d -m 0755 $(DESTDIR)/boot ; \
|
||||
fi
|
||||
install -d -m 0700 $(DESTDIR)/$(EFI_ESP_ROOT)
|
||||
+ install -d -m 0700 $(DESTDIR)/$(EFI_ESP_ROOT)/EFI
|
||||
install -d -m 0700 $(DESTDIR)/$(EFI_ESP_ROOT)/EFI/BOOT
|
||||
install -d -m 0700 $(DESTDIR)/$(EFI_ESP_ROOT)/EFI/$(EFI_VENDOR)
|
||||
|
||||
--
|
||||
2.40.1
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
Summary: Common RPM Macros for building EFI-related packages
|
||||
Name: efi-rpm-macros
|
||||
Version: 5
|
||||
Release: 7%{?dist}
|
||||
License: GPLv3+
|
||||
Release: 11.0.riscv64%{?dist}
|
||||
License: GPL-3.0-or-later
|
||||
URL: https://github.com/rhboot/%{name}/
|
||||
BuildRequires: git sed
|
||||
BuildRequires: make
|
||||
|
@ -11,6 +11,8 @@ BuildArch: noarch
|
|||
Source0: https://github.com/rhboot/%{name}/releases/download/%{version}/%{name}-5.tar.bz2
|
||||
|
||||
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))
|
||||
|
@ -39,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
|
||||
|
@ -68,6 +70,26 @@ 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
|
||||
|
||||
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Wed Dec 13 2023 Nicolas Frayer <nfrayer@redhat.com>
|
||||
- Migrate to SPDX license
|
||||
- Please refer to https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_2
|
||||
|
||||
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Fri Jun 09 2023 Sandro Bonazzola <sbonazzo@redhat.com> - 5-8
|
||||
- Fixes permissions on /boot/efi/EFI
|
||||
- Resolves: rhbz#2144459
|
||||
|
||||
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
|
|
Loading…
Reference in New Issue