87c9c16317
Add basic support to run QEMU via kunit_tool. Add support for i386, x86_64, arm, arm64, and a bunch more. Signed-off-by: Brendan Higgins <brendanhiggins@google.com> Tested-by: David Gow <davidgow@google.com> Reviewed-by: David Gow <davidgow@google.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
14 lines
405 B
Python
14 lines
405 B
Python
from ..qemu_config import QemuArchParams
|
|
|
|
QEMU_ARCH = QemuArchParams(linux_arch='arm',
|
|
kconfig='''
|
|
CONFIG_ARCH_VIRT=y
|
|
CONFIG_SERIAL_AMBA_PL010=y
|
|
CONFIG_SERIAL_AMBA_PL010_CONSOLE=y
|
|
CONFIG_SERIAL_AMBA_PL011=y
|
|
CONFIG_SERIAL_AMBA_PL011_CONSOLE=y''',
|
|
qemu_arch='arm',
|
|
kernel_path='arch/arm/boot/zImage',
|
|
kernel_command_line='console=ttyAMA0',
|
|
extra_qemu_params=['-machine virt'])
|