summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/wic/canned-wks/qemuloongarch.wks3
-rwxr-xr-xscripts/runqemu4
2 files changed, 6 insertions, 1 deletions
diff --git a/scripts/lib/wic/canned-wks/qemuloongarch.wks b/scripts/lib/wic/canned-wks/qemuloongarch.wks
new file mode 100644
index 0000000000..8465c7a8c0
--- /dev/null
+++ b/scripts/lib/wic/canned-wks/qemuloongarch.wks
@@ -0,0 +1,3 @@
1# short-description: Create qcow2 image for LoongArch QEMU machines
2
3part / --source rootfs --fstype=ext4 --label root --align 4096 --size 5G
diff --git a/scripts/runqemu b/scripts/runqemu
index 5907390573..def11ea911 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -1313,7 +1313,7 @@ class BaseConfig(object):
1313 """attempt to determine the appropriate qemu-system binary""" 1313 """attempt to determine the appropriate qemu-system binary"""
1314 mach = self.get('MACHINE') 1314 mach = self.get('MACHINE')
1315 if not mach: 1315 if not mach:
1316 search = '.*(qemux86-64|qemux86|qemuarm64|qemuarm|qemumips64|qemumips64el|qemumipsel|qemumips|qemuppc).*' 1316 search = '.*(qemux86-64|qemux86|qemuarm64|qemuarm|qemuloongarch64|qemumips64|qemumips64el|qemumipsel|qemumips|qemuppc).*'
1317 if self.rootfs: 1317 if self.rootfs:
1318 match = re.match(search, self.rootfs) 1318 match = re.match(search, self.rootfs)
1319 if match: 1319 if match:
@@ -1336,6 +1336,8 @@ class BaseConfig(object):
1336 qbsys = 'x86_64' 1336 qbsys = 'x86_64'
1337 elif mach == 'qemuppc': 1337 elif mach == 'qemuppc':
1338 qbsys = 'ppc' 1338 qbsys = 'ppc'
1339 elif mach == 'qemuloongarch64':
1340 qbsys = 'loongarch64'
1339 elif mach == 'qemumips': 1341 elif mach == 'qemumips':
1340 qbsys = 'mips' 1342 qbsys = 'mips'
1341 elif mach == 'qemumips64': 1343 elif mach == 'qemumips64':