From 1dd5c520e1a397323dfa128ad3e2cfe46835adb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=BD=AC=E7=90=9B?= Date: Fri, 15 Aug 2025 01:59:25 +0000 Subject: [PATCH] sw_64 support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 张彬琛 --- 1003-add-sw_64-support-for-loarx.patch | 25 +++++++++++++++++++++++++ lorax.spec | 7 ++++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 1003-add-sw_64-support-for-loarx.patch diff --git a/1003-add-sw_64-support-for-loarx.patch b/1003-add-sw_64-support-for-loarx.patch new file mode 100644 index 0000000..67af599 --- /dev/null +++ b/1003-add-sw_64-support-for-loarx.patch @@ -0,0 +1,25 @@ +From 822f487616b0260ce69ff4226197547cba5c3d42 Mon Sep 17 00:00:00 2001 +From: zhangbinchen +Date: Fri, 15 Aug 2025 09:54:59 +0800 +Subject: [PATCH] support sw_64 + +Signed-off-by: zhangbinchen +--- + src/pylorax/treebuilder.py | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/pylorax/treebuilder.py b/src/pylorax/treebuilder.py +index b57bcae..2ab5656 100644 +--- a/src/pylorax/treebuilder.py ++++ b/src/pylorax/treebuilder.py +@@ -41,6 +41,7 @@ templatemap = { + 'aarch64': 'aarch64.tmpl', + 'loongarch64': 'loongarch64.tmpl', + 'riscv64': 'riscv64.tmpl', ++ 'sw_64': 'sw_64.tmpl', + } + + def generate_module_info(moddir, outfile=None): +-- +2.43.5 + diff --git a/lorax.spec b/lorax.spec index 36f7123..9fb1ef9 100644 --- a/lorax.spec +++ b/lorax.spec @@ -1,4 +1,4 @@ -%define anolis_release 7 +%define anolis_release 8 # NOTE: This specfile is generated from upstream at https://github.com/rhinstaller/lorax # NOTE: Please submit changes as a pull request %define debug_package %{nil} @@ -14,6 +14,7 @@ Source0: https://github.com/weldr/lorax/archive/refs/tags/%{name}-%{versi Patch001: 0001-add-loongarch64-support-for-lorax.patch Patch1001: 1001-Adapt-new-version-util-linux.patch Patch1002: 1002-add-riscv64-support-for-lorax.patch +Patch1003: 1003-add-sw_64-support-for-loarx.patch BuildRequires: python3-devel BuildRequires: make @@ -124,6 +125,7 @@ Lorax templates for creating the boot.iso and live isos are placed in %patch001 -p1 %patch1001 -p1 %patch1002 -p1 +%patch1003 -p1 %build @@ -163,6 +165,9 @@ make DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir} install %{_datadir}/lorax/templates.d/* %changelog +* Fri Aug 15 2025 zhangbinchen - 40.0-8 +- add patch 1003 for sw64 support + * Tue Jun 24 2025 Yihao Yan - 40.0-7 - Fix error in %prep -- Gitee