Skip to content

Commit 9a99129

Browse files
t-8chshuahkh
authored andcommitted
kunit: qemu_configs: Add PowerPC 32-bit BE and 64-bit LE
Add basic configs to run kunit tests on some more PowerPC variants. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Thomas Weißschuh <[email protected]> Reviewed-by: David Gow <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent 09ea90e commit 9a99129

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
3+
from ..qemu_config import QemuArchParams
4+
5+
QEMU_ARCH = QemuArchParams(linux_arch='powerpc',
6+
kconfig='''
7+
CONFIG_PPC32=y
8+
CONFIG_CPU_BIG_ENDIAN=y
9+
CONFIG_ADB_CUDA=y
10+
CONFIG_SERIAL_PMACZILOG=y
11+
CONFIG_SERIAL_PMACZILOG_TTYS=y
12+
CONFIG_SERIAL_PMACZILOG_CONSOLE=y
13+
''',
14+
qemu_arch='ppc',
15+
kernel_path='vmlinux',
16+
kernel_command_line='console=ttyS0',
17+
extra_qemu_params=['-M', 'g3beige', '-cpu', 'max'])
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
3+
from ..qemu_config import QemuArchParams
4+
5+
QEMU_ARCH = QemuArchParams(linux_arch='powerpc',
6+
kconfig='''
7+
CONFIG_PPC64=y
8+
CONFIG_CPU_LITTLE_ENDIAN=y
9+
CONFIG_HVC_CONSOLE=y
10+
''',
11+
qemu_arch='ppc64',
12+
kernel_path='vmlinux',
13+
kernel_command_line='console=ttyS0',
14+
extra_qemu_params=['-M', 'pseries', '-cpu', 'power8'])

0 commit comments

Comments
 (0)