diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2023-02-28 13:31:03 +0300 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2023-04-05 21:51:16 +0300 |
commit | 8110a3cab05ee4a26f36015f0423fb2b5cea1392 (patch) | |
tree | 3d8394c10a78d3290e7c9fe2877a48270a17a74c /tools/testing/kunit | |
parent | 5ffb8629b133fecf7cdd36134ae6d6a1efb46eb5 (diff) | |
download | linux-8110a3cab05ee4a26f36015f0423fb2b5cea1392.tar.xz |
kunit: tool: Add support for SH under QEMU
Add basic support to run SH under QEMU via kunit_tool using the
virtualized r2d platform.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/kunit')
-rw-r--r-- | tools/testing/kunit/qemu_configs/sh.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/testing/kunit/qemu_configs/sh.py b/tools/testing/kunit/qemu_configs/sh.py new file mode 100644 index 000000000000..78a474a5b95f --- /dev/null +++ b/tools/testing/kunit/qemu_configs/sh.py @@ -0,0 +1,17 @@ +# SPDX-License-Identifier: GPL-2.0-only +from ..qemu_config import QemuArchParams + +QEMU_ARCH = QemuArchParams(linux_arch='sh', + kconfig=''' +CONFIG_CPU_SUBTYPE_SH7751R=y +CONFIG_MEMORY_START=0x0c000000 +CONFIG_SH_RTS7751R2D=y +CONFIG_RTS7751R2D_PLUS=y +CONFIG_SERIAL_SH_SCI=y''', + qemu_arch='sh4', + kernel_path='arch/sh/boot/zImage', + kernel_command_line='console=ttySC1', + serial='null', + extra_qemu_params=[ + '-machine', 'r2d', + '-serial', 'mon:stdio']) |