aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/wireguard/qemu/arch/arm.config
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2022-05-04 22:29:17 +0200
committerJakub Kicinski <kuba@kernel.org>2022-05-04 17:49:56 -0700
commitd5d9b29bc963cc084c5c0f3a7c28e2632a22e0c4 (patch)
treea8467d73304ec4f8b5db0f4fe3f7f32337a735ec /tools/testing/selftests/wireguard/qemu/arch/arm.config
parentwireguard: selftests: limit parallelism to $(nproc) tests at once (diff)
downloadwireguard-linux-d5d9b29bc963cc084c5c0f3a7c28e2632a22e0c4.tar.xz
wireguard-linux-d5d9b29bc963cc084c5c0f3a7c28e2632a22e0c4.zip
wireguard: selftests: use newer toolchains to fill out architectures
Rather than relying on the system to have cross toolchains available, simply download musl.cc's ones and use that libc.so, and then we use it to fill in a few missing platforms, such as riscv64, riscv64, powerpc64, and s390x. Since riscv doesn't have a second serial port in its device description, we have to use virtio's vport. This is actually the same situation on ARM, but we were previously hacking QEMU up to work around this, which required a custom QEMU. Instead just do the vport trick on ARM too. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/selftests/wireguard/qemu/arch/arm.config')
-rw-r--r--tools/testing/selftests/wireguard/qemu/arch/arm.config5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/testing/selftests/wireguard/qemu/arch/arm.config b/tools/testing/selftests/wireguard/qemu/arch/arm.config
index 148f49905418..c616124fdd59 100644
--- a/tools/testing/selftests/wireguard/qemu/arch/arm.config
+++ b/tools/testing/selftests/wireguard/qemu/arch/arm.config
@@ -4,6 +4,9 @@ CONFIG_ARCH_VIRT=y
CONFIG_THUMB2_KERNEL=n
CONFIG_SERIAL_AMBA_PL011=y
CONFIG_SERIAL_AMBA_PL011_CONSOLE=y
+CONFIG_VIRTIO_MENU=y
+CONFIG_VIRTIO_MMIO=y
+CONFIG_VIRTIO_CONSOLE=y
CONFIG_CMDLINE_BOOL=y
-CONFIG_CMDLINE="console=ttyAMA0 wg.success=ttyAMA1"
+CONFIG_CMDLINE="console=ttyAMA0 wg.success=vport0p1"
CONFIG_FRAME_WARN=1024