mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-04 02:25:58 +00:00

Add a basic config to run kunit tests on riscv32. Link: https://lore.kernel.org/r/20250407-kunit-qemu-riscv32-v1-1-7b9800034a35@linutronix.de Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Reviewed-by: David Gow <davidgow@google.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
18 lines
445 B
Python
18 lines
445 B
Python
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
from ..qemu_config import QemuArchParams
|
|
|
|
QEMU_ARCH = QemuArchParams(linux_arch='riscv',
|
|
kconfig='''
|
|
CONFIG_NONPORTABLE=y
|
|
CONFIG_ARCH_RV32I=y
|
|
CONFIG_ARCH_VIRT=y
|
|
CONFIG_SERIAL_8250=y
|
|
CONFIG_SERIAL_8250_CONSOLE=y
|
|
CONFIG_SERIAL_OF_PLATFORM=y
|
|
''',
|
|
qemu_arch='riscv32',
|
|
kernel_path='arch/riscv/boot/Image',
|
|
kernel_command_line='console=ttyS0',
|
|
extra_qemu_params=['-machine', 'virt'])
|