Add loongarch64 architecture
Signed-off-by: yangchenguang <yangchenguang@kylinsec.com.cn> (cherry picked from commit 059b4e171e4747d140b2ec8b8b7f3e55fe4f447a)
This commit is contained in:
parent
a82ac4877b
commit
6a977cb284
39
Add-loongarch-support.patch
Normal file
39
Add-loongarch-support.patch
Normal file
@ -0,0 +1,39 @@
|
||||
From 6d1e16a3edfc0a1bb5409627779158350dc4a599 Mon Sep 17 00:00:00 2001
|
||||
From: yangchenguang <yangchenguang@kylinsec.com.cn>
|
||||
Date: Thu, 13 Apr 2023 10:07:44 +0800
|
||||
Subject: [PATCH] Add loongarch support
|
||||
|
||||
Signed-off-by: yangchenguang <yangchenguang@kylinsec.com.cn>
|
||||
---
|
||||
virtManager/create.py | 1 +
|
||||
virtinst/domain/os.py | 2 ++
|
||||
2 files changed, 3 insertions(+)
|
||||
|
||||
diff --git a/virtManager/create.py b/virtManager/create.py
|
||||
index e7ddd0c..2c72b5b 100644
|
||||
--- a/virtManager/create.py
|
||||
+++ b/virtManager/create.py
|
||||
@@ -428,6 +428,7 @@ class vmmCreate(vmmGObjectUI):
|
||||
installable_arch = bool(guest.os.is_x86() or
|
||||
guest.os.is_ppc64() or
|
||||
guest.os.is_sw_64() or
|
||||
+ guest.os.is_loongarch() or
|
||||
guest.os.is_s390x())
|
||||
|
||||
if guest.prefers_uefi():
|
||||
diff --git a/virtinst/domain/os.py b/virtinst/domain/os.py
|
||||
index fdcaa19..95427f2 100644
|
||||
--- a/virtinst/domain/os.py
|
||||
+++ b/virtinst/domain/os.py
|
||||
@@ -48,6 +48,8 @@ class DomainOs(XMLBuilder):
|
||||
return self.arch == "aarch64"
|
||||
def is_sw_64(self):
|
||||
return self.arch == "sw_64"
|
||||
+ def is_sw_64(self):
|
||||
+ return self.arch == "loongarch64"
|
||||
def is_arm(self):
|
||||
return self.is_arm32() or self.is_arm64()
|
||||
def is_arm_vexpress(self):
|
||||
--
|
||||
2.33.0
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
%global __python %{__python3}
|
||||
Name: virt-manager
|
||||
Version: 2.1.0
|
||||
Release: 6
|
||||
Release: 7
|
||||
Summary: The manage virtual machines tool which via libvirt.
|
||||
License: GPLv2+
|
||||
BuildArch: noarch
|
||||
@ -10,6 +10,7 @@ Source0: https://virt-manager.org/download/sources/virt-manager/virt
|
||||
Patch0001: 0001-initrdinject-Use-full-option-versions-for-cpio.patch
|
||||
Patch0002: 0002-initrdinject-Force-added-files-to-be-owned-as-root-b.patch
|
||||
Patch0003: 0003-virt-manager-Add-sw64-architecture.patch
|
||||
Patch0004: Add-loongarch-support.patch
|
||||
Requires: virt-manager-common = %{version}-%{release} python3-gobject gtk3 libvirt-glib >= 0.0.9
|
||||
Requires: gtk-vnc2 spice-gtk3 dconf vte291
|
||||
Recommends: (libvirt-daemon-kvm or libvirt-daemon-qemu) libvirt-daemon-config-network
|
||||
@ -82,6 +83,9 @@ done
|
||||
%{_mandir}/man1/{virt-install.1*,virt-clone.1*,virt-convert.1*,virt-xml.1*}
|
||||
|
||||
%changelog
|
||||
* Thu Apr 13 2023 yangchenguang <yangchenguang@kylinsec.com.cn> - 2.1.0-7
|
||||
- Add loongarch64 architecture
|
||||
|
||||
* Wed Oct 26 2022 wuzx<wuzx1226@qq.com> - 2.1.0-6
|
||||
- Add sw64 architecture
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user