Allow riscv64 for UEFI executables
Fixes kernel build issues with UKI enabled: dracut: Architecture 'riscv64' not supported to create a UEFI executable Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
parent
a1ebaf27b6
commit
70cb77777f
|
@ -0,0 +1,27 @@
|
|||
From 0842df719cfc4bdb06b17b06f7441c8c421b451d Mon Sep 17 00:00:00 2001
|
||||
From: rpm-build <rpm-build>
|
||||
Date: Tue, 26 Mar 2024 15:41:07 +0000
|
||||
Subject: [PATCH] Add support for riscv64 UEFI
|
||||
|
||||
Signed-off-by: rpm-build <rpm-build>
|
||||
---
|
||||
dracut.sh | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/dracut.sh b/dracut.sh
|
||||
index 9dcd661..13c32b3 100755
|
||||
--- a/dracut.sh
|
||||
+++ b/dracut.sh
|
||||
@@ -1457,6 +1457,9 @@ if [[ ! $print_cmdline ]]; then
|
||||
aarch64)
|
||||
EFI_MACHINE_TYPE_NAME=aa64
|
||||
;;
|
||||
+ riscv64)
|
||||
+ EFI_MACHINE_TYPE_NAME=riscv64
|
||||
+ ;;
|
||||
*)
|
||||
dfatal "Architecture '${DRACUT_ARCH:-$(uname -m)}' not supported to create a UEFI executable"
|
||||
exit 1
|
||||
--
|
||||
2.44.0
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
Name: dracut
|
||||
Version: 059
|
||||
Release: %{baserelease}%{?dist}
|
||||
Release: %{baserelease}.0.riscv64%{?dist}
|
||||
|
||||
Summary: Initramfs generator using udev
|
||||
|
||||
|
@ -107,6 +107,10 @@ Patch19: 2540-fix-pkcs11-libcryptsetup-token-systemd-pkcs11-so-path.patch
|
|||
# https://github.com/dracutdevs/dracut/pull/2547
|
||||
Patch20: 2547-fix-pcsc-module.patch
|
||||
|
||||
# Fix:
|
||||
# dracut: Architecture 'riscv64' not supported to create a UEFI executable
|
||||
Patch30: 0001-Add-support-for-riscv64-UEFI.patch
|
||||
|
||||
BuildRequires: bash
|
||||
BuildRequires: git-core
|
||||
BuildRequires: pkgconfig(libkmod) >= 23
|
||||
|
@ -509,6 +513,9 @@ echo 'dracut_rescue_image="yes"' > $RPM_BUILD_ROOT%{dracutlibdir}/dracut.conf.d/
|
|||
%{_prefix}/lib/kernel/install.d/51-dracut-rescue.install
|
||||
|
||||
%changelog
|
||||
* Tue Mar 26 2024 David Abdurachmanov <davidlt@rivosinc.com> - 059-22.0.riscv64
|
||||
- Allow riscv64 for UEFI executables
|
||||
|
||||
* Mon Feb 12 2024 Pavel Valena <pvalena@redhat.com> - 059-22
|
||||
- Remove network-legacy module.
|
||||
|
||||
|
|
Loading…
Reference in New Issue