kunit: tool: Add support for m68k under QEMU
authorGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 27 Feb 2023 11:12:45 +0000 (12:12 +0100)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 7 Mar 2023 00:11:45 +0000 (17:11 -0700)
Add basic support to run m68k under QEMU via kunit_tool.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/kunit/qemu_configs/m68k.py [new file with mode: 0644]

diff --git a/tools/testing/kunit/qemu_configs/m68k.py b/tools/testing/kunit/qemu_configs/m68k.py
new file mode 100644 (file)
index 0000000..287fc38
--- /dev/null
@@ -0,0 +1,10 @@
+# SPDX-License-Identifier: GPL-2.0-only
+from ..qemu_config import QemuArchParams
+
+QEMU_ARCH = QemuArchParams(linux_arch='m68k',
+                          kconfig='''
+CONFIG_VIRT=y''',
+                          qemu_arch='m68k',
+                          kernel_path='vmlinux',
+                          kernel_command_line='console=hvc0',
+                          extra_qemu_params=['-machine', 'virt'])