Skip to content

Commit 9aa08e7

Browse files
t-8chshuahkh
authored andcommitted
kunit: qemu_configs: Add riscv32 config
Add a basic config to run kunit tests on riscv32. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Thomas Weißschuh <[email protected]> Reviewed-by: David Gow <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent a571a9a commit 9aa08e7

File tree

1 file changed

+17
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)