summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/wireguard/qemu/arch/riscv32.config
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2022-05-04 23:29:17 +0300
committerJakub Kicinski <kuba@kernel.org>2022-05-05 03:49:56 +0300
commitd5d9b29bc963cc084c5c0f3a7c28e2632a22e0c4 (patch)
treea8467d73304ec4f8b5db0f4fe3f7f32337a735ec /tools/testing/selftests/wireguard/qemu/arch/riscv32.config
parent39f02bf1e5ce9d72045de01e3d618ade1067158c (diff)
downloadlinux-d5d9b29bc963cc084c5c0f3a7c28e2632a22e0c4.tar.xz
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/riscv32.config')
-rw-r--r--tools/testing/selftests/wireguard/qemu/arch/riscv32.config12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/testing/selftests/wireguard/qemu/arch/riscv32.config b/tools/testing/selftests/wireguard/qemu/arch/riscv32.config
new file mode 100644
index 000000000000..ea53e78e923e
--- /dev/null
+++ b/tools/testing/selftests/wireguard/qemu/arch/riscv32.config
@@ -0,0 +1,12 @@
+CONFIG_ARCH_RV32I=y
+CONFIG_MMU=y
+CONFIG_FPU=y
+CONFIG_SOC_VIRT=y
+CONFIG_SERIAL_8250=y
+CONFIG_SERIAL_8250_CONSOLE=y
+CONFIG_SERIAL_OF_PLATFORM=y
+CONFIG_VIRTIO_MENU=y
+CONFIG_VIRTIO_MMIO=y
+CONFIG_VIRTIO_CONSOLE=y
+CONFIG_CMDLINE="console=ttyS0 wg.success=vport0p1"
+CONFIG_CMDLINE_FORCE=y