Skip to content

Commit d282524

Browse files
t-8chshuahkh
authored andcommitted
kunit: qemu_configs: Add LoongArch config
Add a basic config to run kunit tests on LoongArch. This requires QEMU 9.1.0 or later for the necessary direct kernel boot support. Link: https://lore.kernel.org/r/20241111-kunit-loongarch-v2-1-7676eb5f2da3@linutronix.de Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Reviewed-by: Bibo Mao <maobibo@loongson.cn> Reviewed-by: David Gow <davidgow@google.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
1 parent 95b6d72 commit d282524

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
3+
from ..qemu_config import QemuArchParams
4+
5+
QEMU_ARCH = QemuArchParams(linux_arch='loongarch',
6+
kconfig='''
7+
CONFIG_EFI_STUB=n
8+
CONFIG_PCI_HOST_GENERIC=y
9+
CONFIG_SERIAL_8250=y
10+
CONFIG_SERIAL_8250_CONSOLE=y
11+
CONFIG_SERIAL_OF_PLATFORM=y
12+
''',
13+
qemu_arch='loongarch64',
14+
kernel_path='arch/loongarch/boot/vmlinux.elf',
15+
kernel_command_line='console=ttyS0',
16+
extra_qemu_params=[
17+
'-machine', 'virt',
18+
'-cpu', 'max',])

0 commit comments

Comments
 (0)