Add RISC-V support

This commit is contained in:
Andrew Lukoshko 2026-05-21 05:52:45 +00:00 committed by root
parent 9181fa854f
commit 6defda2569
2 changed files with 10 additions and 19 deletions

View File

@ -8,30 +8,20 @@ RISC-V uses UEFI boot like aarch64, so no special bootloader partition
is needed.
Changes:
- discoverable_partition_specification: add riscv64 to this_arch_root()
- install: add riscv64 to ARCH_USES_EFI
- install/baseline: add riscv64 to partitioning arch checks
Note: the riscv64 branch in this_arch_root() (in
crates/lib/src/discoverable_partition_specification.rs) was accepted
upstream in bootc commit 47c3620 ("fix: add riscv64 to this_arch_root")
and is already present in v1.15.2, so it is no longer carried here.
Signed-off-by: Andrew Lukoshko <alukoshko@almalinux.org>
---
crates/lib/src/discoverable_partition_specification.rs | 2 ++
crates/lib/src/install.rs | 2 +-
crates/lib/src/install/baseline.rs | 2 +-
3 files changed, 4 insertions(+), 2 deletions(-)
crates/lib/src/install.rs | 2 +-
crates/lib/src/install/baseline.rs | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/crates/lib/src/discoverable_partition_specification.rs b/crates/lib/src/discoverable_partition_specification.rs
index d5432e7..344b232 100644
--- a/crates/lib/src/discoverable_partition_specification.rs
+++ b/crates/lib/src/discoverable_partition_specification.rs
@@ -457,6 +457,8 @@ pub const fn this_arch_root() -> &'static str {
ROOT_PPC64
} else if #[cfg(all(target_arch = "powerpc64", target_endian = "little"))] {
ROOT_PPC64_LE
+ } else if #[cfg(target_arch = "riscv64")] {
+ ROOT_RISCV64
} else {
compile_error!("Unsupported architecture")
}
diff --git a/crates/lib/src/install.rs b/crates/lib/src/install.rs
index 105e2b3..052b208 100644
--- a/crates/lib/src/install.rs
@ -60,3 +50,4 @@ index d05604e..34d3187 100644
anyhow::bail!("Unsupported architecture: {}", std::env::consts::ARCH);
--
2.43.0

View File

@ -226,7 +226,7 @@ fi
%endif
%changelog
* Wed May 20 2026 Andrew Lukoshko <alukoshko@almalinux.org> - 1.15.2-1.alma.1
* Thu May 21 2026 Andrew Lukoshko <alukoshko@almalinux.org> - 1.15.2-1.alma.1
- Add RISC-V support
## START: Generated by rpmautospec