summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu
diff options
context:
space:
mode:
authorXiaotian Wu <wuxiaotian@loongson.cn>2023-02-03 07:16:12 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-02-04 17:02:10 +0000
commit324b03e15fb8623690a5c5c64006602fdc7027a2 (patch)
treeee0bd81ab19521469baa48447cc61132351f91a0 /scripts/runqemu
parent69b8b7ef1bd3c2e4a5140aff3de5318b1b292986 (diff)
downloadpoky-324b03e15fb8623690a5c5c64006602fdc7027a2.tar.gz
base: add support for loongarch64
(From OE-Core rev: 759baaceb4dd623d5da12ba0d01540fa080154ba) Signed-off-by: Xiaotian Wu <wuxiaotian@loongson.cn> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-xscripts/runqemu4
1 files changed, 3 insertions, 1 deletions
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':