Add riscv64 support
This commit is contained in:
parent
22d020da5c
commit
5abb7e7935
43
0002-Add-riscv64-support.patch
Normal file
43
0002-Add-riscv64-support.patch
Normal file
@ -0,0 +1,43 @@
|
||||
From c2064cd37a33a1238bb3f1ec6bf2a89228543871 Mon Sep 17 00:00:00 2001
|
||||
From: eabdullin <eabdullin@almalinux.org>
|
||||
Date: Mon, 1 Sep 2025 13:05:59 +0300
|
||||
Subject: [PATCH 2/2] Add riscv64 support
|
||||
|
||||
---
|
||||
src/pylorax/installer.py | 7 +++++++
|
||||
src/pylorax/treebuilder.py | 1 +
|
||||
2 files changed, 8 insertions(+)
|
||||
|
||||
diff --git a/src/pylorax/installer.py b/src/pylorax/installer.py
|
||||
index 7fe6795..308349e 100644
|
||||
--- a/src/pylorax/installer.py
|
||||
+++ b/src/pylorax/installer.py
|
||||
@@ -161,6 +161,13 @@ class QEMUInstall(object):
|
||||
"arches": ["s390x"],
|
||||
"machine": "s390-ccw-virtio"
|
||||
},
|
||||
+ "riscv64": {
|
||||
+ "cmd": "/usr/libexec/qemu-kvm",
|
||||
+ "arches": ["riscv64"],
|
||||
+ "machine": "virt",
|
||||
+ "uefi": ["riscv/RISCV_VIRT_CODE.qcow2", "riscv/RISCV_VIRT_VARS.qcow2"],
|
||||
+ "uefi_machine": "virt",
|
||||
+ },
|
||||
}
|
||||
|
||||
def __init__(self, opts, iso, ks_paths, disk_img, img_size=2048,
|
||||
diff --git a/src/pylorax/treebuilder.py b/src/pylorax/treebuilder.py
|
||||
index 47f8747..40be1f9 100644
|
||||
--- a/src/pylorax/treebuilder.py
|
||||
+++ b/src/pylorax/treebuilder.py
|
||||
@@ -37,6 +37,7 @@ from pylorax.executils import runcmd, runcmd_output, execWithCapture
|
||||
templatemap = {
|
||||
'x86_64': 'x86.tmpl',
|
||||
'x86_64_v2': 'x86_v2.tmpl',
|
||||
+ 'riscv64': 'riscv64.tmpl',
|
||||
'ppc64le': 'ppc64le.tmpl',
|
||||
's390x': 's390.tmpl',
|
||||
'aarch64': 'aarch64.tmpl',
|
||||
--
|
||||
2.39.5 (Apple Git-154)
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
|
||||
Name: lorax
|
||||
Version: 40.5.13
|
||||
Release: 1%{?dist}.alma.1
|
||||
Release: 1%{?dist}.alma.2
|
||||
Summary: Tool for creating the anaconda install images
|
||||
|
||||
License: GPL-2.0-or-later
|
||||
@ -17,6 +17,7 @@ Source0: %{name}-%{version}.tar.gz
|
||||
|
||||
# AlmaLinux Patch
|
||||
Patch1000: 0001-Add-x86_64_v2-support.patch
|
||||
Patch1001: 0002-Add-riscv64-support.patch
|
||||
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
@ -185,6 +186,9 @@ make DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir} install
|
||||
%{_datadir}/lorax/templates.d/*
|
||||
|
||||
%changelog
|
||||
* Mon Sep 01 2025 Eduard Abdullin <eabdullin@almalinux.org> - 40.5.13-1.alma.2
|
||||
- Add riscv64 support
|
||||
|
||||
* Tue Aug 12 2025 Eduard Abdullin <eabdullin@almalinux.org> - 40.5.13-1.alma.1
|
||||
- Add x86_64_v2 support
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user