Add a basic configuration to run kunit tests on microblaze.

Signed-off-by: Thomas Weißschuh <[email protected]>
---
 tools/testing/kunit/qemu_configs/microblaze.py | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/tools/testing/kunit/qemu_configs/microblaze.py 
b/tools/testing/kunit/qemu_configs/microblaze.py
new file mode 100644
index 000000000000..ff012095e77d
--- /dev/null
+++ b/tools/testing/kunit/qemu_configs/microblaze.py
@@ -0,0 +1,17 @@
+# SPDX-License-Identifier: GPL-2.0-only
+from ..qemu_config import QemuArchParams
+
+QEMU_ARCH = QemuArchParams(linux_arch='microblaze',
+                                                  kconfig='''
+CONFIG_CPU_BIG_ENDIAN=y
+CONFIG_SERIAL_UARTLITE=y
+CONFIG_SERIAL_UARTLITE_CONSOLE=y
+CONFIG_MB_POWER_OFF_THROUGH_UNALIGNED_PC=y
+''',
+                                                  qemu_arch='microblaze',
+                                                  
kernel_path='arch/microblaze/boot/linux.bin',
+                                                  
kernel_command_line='kunit_shutdown=poweroff',
+                                                  extra_qemu_params=[
+                                                       '-M', 
'petalogix-s3adsp1800',
+                                                  ],
+)

-- 
2.55.0


Reply via email to