mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 11:06:41 -05:00
kunit: qemu_configs: Add MIPS configurations
Add basic support to run various MIPS variants via kunit_tool using the virtualized malta platform. Link: https://lore.kernel.org/r/20250908-kunit-mips-v5-1-d9f0632d1854@linutronix.de Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Reviewed-by: David Gow <davidgow@google.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
This commit is contained in:
committed by
Shuah Khan
parent
031cdd3bc3
commit
f20e264262
18
tools/testing/kunit/qemu_configs/mips.py
Normal file
18
tools/testing/kunit/qemu_configs/mips.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
from ..qemu_config import QemuArchParams
|
||||
|
||||
QEMU_ARCH = QemuArchParams(linux_arch='mips',
|
||||
kconfig='''
|
||||
CONFIG_32BIT=y
|
||||
CONFIG_CPU_BIG_ENDIAN=y
|
||||
CONFIG_MIPS_MALTA=y
|
||||
CONFIG_SERIAL_8250=y
|
||||
CONFIG_SERIAL_8250_CONSOLE=y
|
||||
CONFIG_POWER_RESET=y
|
||||
CONFIG_POWER_RESET_SYSCON=y
|
||||
''',
|
||||
qemu_arch='mips',
|
||||
kernel_path='vmlinuz',
|
||||
kernel_command_line='console=ttyS0',
|
||||
extra_qemu_params=['-M', 'malta'])
|
||||
19
tools/testing/kunit/qemu_configs/mips64.py
Normal file
19
tools/testing/kunit/qemu_configs/mips64.py
Normal file
@@ -0,0 +1,19 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
from ..qemu_config import QemuArchParams
|
||||
|
||||
QEMU_ARCH = QemuArchParams(linux_arch='mips',
|
||||
kconfig='''
|
||||
CONFIG_CPU_MIPS64_R2=y
|
||||
CONFIG_64BIT=y
|
||||
CONFIG_CPU_BIG_ENDIAN=y
|
||||
CONFIG_MIPS_MALTA=y
|
||||
CONFIG_SERIAL_8250=y
|
||||
CONFIG_SERIAL_8250_CONSOLE=y
|
||||
CONFIG_POWER_RESET=y
|
||||
CONFIG_POWER_RESET_SYSCON=y
|
||||
''',
|
||||
qemu_arch='mips64',
|
||||
kernel_path='vmlinuz',
|
||||
kernel_command_line='console=ttyS0',
|
||||
extra_qemu_params=['-M', 'malta', '-cpu', '5KEc'])
|
||||
19
tools/testing/kunit/qemu_configs/mips64el.py
Normal file
19
tools/testing/kunit/qemu_configs/mips64el.py
Normal file
@@ -0,0 +1,19 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
from ..qemu_config import QemuArchParams
|
||||
|
||||
QEMU_ARCH = QemuArchParams(linux_arch='mips',
|
||||
kconfig='''
|
||||
CONFIG_CPU_MIPS64_R2=y
|
||||
CONFIG_64BIT=y
|
||||
CONFIG_CPU_LITTLE_ENDIAN=y
|
||||
CONFIG_MIPS_MALTA=y
|
||||
CONFIG_SERIAL_8250=y
|
||||
CONFIG_SERIAL_8250_CONSOLE=y
|
||||
CONFIG_POWER_RESET=y
|
||||
CONFIG_POWER_RESET_SYSCON=y
|
||||
''',
|
||||
qemu_arch='mips64el',
|
||||
kernel_path='vmlinuz',
|
||||
kernel_command_line='console=ttyS0',
|
||||
extra_qemu_params=['-M', 'malta', '-cpu', '5KEc'])
|
||||
18
tools/testing/kunit/qemu_configs/mipsel.py
Normal file
18
tools/testing/kunit/qemu_configs/mipsel.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
from ..qemu_config import QemuArchParams
|
||||
|
||||
QEMU_ARCH = QemuArchParams(linux_arch='mips',
|
||||
kconfig='''
|
||||
CONFIG_32BIT=y
|
||||
CONFIG_CPU_LITTLE_ENDIAN=y
|
||||
CONFIG_MIPS_MALTA=y
|
||||
CONFIG_SERIAL_8250=y
|
||||
CONFIG_SERIAL_8250_CONSOLE=y
|
||||
CONFIG_POWER_RESET=y
|
||||
CONFIG_POWER_RESET_SYSCON=y
|
||||
''',
|
||||
qemu_arch='mipsel',
|
||||
kernel_path='vmlinuz',
|
||||
kernel_command_line='console=ttyS0',
|
||||
extra_qemu_params=['-M', 'malta'])
|
||||
Reference in New Issue
Block a user