summaryrefslogtreecommitdiff
path: root/tools/testing/kunit
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2023-02-27 12:12:45 +0100
committerShuah Khan <skhan@linuxfoundation.org>2023-03-06 17:11:45 -0700
commit60684c2bd35064043360e6f716d1b7c20e967b7d (patch)
treed4e93e0e82a39b8ed192684b323e38b4616d2ee4 /tools/testing/kunit
parentfe15c26ee26efa11741a7b632e9f23b01aca4cc6 (diff)
kunit: tool: Add support for m68k under QEMU
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>
Diffstat (limited to 'tools/testing/kunit')
-rw-r--r--tools/testing/kunit/qemu_configs/m68k.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/testing/kunit/qemu_configs/m68k.py b/tools/testing/kunit/qemu_configs/m68k.py
new file mode 100644
index 000000000000..287fc386f8a7
--- /dev/null
+++ b/tools/testing/kunit/qemu_configs/m68k.py
@@ -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'])