wireguard: selftests: use newer toolchains to fill out architectures
authorJason A. Donenfeld <Jason@zx2c4.com>
Wed, 4 May 2022 20:29:17 +0000 (22:29 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 5 May 2022 00:49:56 +0000 (17:49 -0700)
commitd5d9b29bc963cc084c5c0f3a7c28e2632a22e0c4
treea8467d73304ec4f8b5db0f4fe3f7f32337a735ec
parent39f02bf1e5ce9d72045de01e3d618ade1067158c
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>
tools/testing/selftests/wireguard/qemu/Makefile
tools/testing/selftests/wireguard/qemu/arch/aarch64.config
tools/testing/selftests/wireguard/qemu/arch/aarch64_be.config
tools/testing/selftests/wireguard/qemu/arch/arm.config
tools/testing/selftests/wireguard/qemu/arch/armeb.config
tools/testing/selftests/wireguard/qemu/arch/powerpc64.config [new file with mode: 0644]
tools/testing/selftests/wireguard/qemu/arch/riscv32.config [new file with mode: 0644]
tools/testing/selftests/wireguard/qemu/arch/riscv64.config [new file with mode: 0644]
tools/testing/selftests/wireguard/qemu/arch/s390x.config [new file with mode: 0644]