]> git.baikalelectronics.ru Git - kernel.git/commitdiff
kunit: tool: Use qemu-system-i386 for i386 runs
authorDavid Gow <davidgow@google.com>
Fri, 13 May 2022 08:51:08 +0000 (16:51 +0800)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 18 May 2022 23:03:54 +0000 (17:03 -0600)
We're currently using the x86_64 qemu for i386 builds. While this is not
incorrect, it's probably more sensible to use the i386 one, which will
at least fail properly if we accidentally were to build a 64-bit kernel.

Signed-off-by: David Gow <davidgow@google.com>
Tested-by: Daniel Latypov <dlatypov@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/kunit/qemu_configs/i386.py

index 52b80be40e4bdcb29ca13c1fdbb25ee7d6fc498e..4463ebefd56742ac38b7f05c31f4d6a1011dfd51 100644 (file)
@@ -4,7 +4,7 @@ QEMU_ARCH = QemuArchParams(linux_arch='i386',
                           kconfig='''
 CONFIG_SERIAL_8250=y
 CONFIG_SERIAL_8250_CONSOLE=y''',
-                          qemu_arch='x86_64',
+                          qemu_arch='i386',
                           kernel_path='arch/x86/boot/bzImage',
                           kernel_command_line='console=ttyS0',
                           extra_qemu_params=[])