selftests: vDSO: unconditionally build chacha test
authorJason A. Donenfeld <Jason@zx2c4.com>
Mon, 7 Oct 2024 21:45:56 +0000 (23:45 +0200)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 8 Oct 2024 21:21:29 +0000 (15:21 -0600)
commit3b5992eaf730bf6c48e2dc8b4ebf360c43e973a7
tree8b96904256df912ccc628827d15f79da9dd8c4a1
parentc66be905cda24fb782b91053b196bd2e966f95b7
selftests: vDSO: unconditionally build chacha test

Rather than using symlinks to find the vgetrandom-chacha.S file for each
arch, store this in a file that uses the compiler to determine
architecture, and then make use of weak symbols to skip the test on
architectures that don't provide the code.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/arch/arm64/vdso [deleted symlink]
tools/arch/loongarch/vdso [deleted symlink]
tools/arch/powerpc/vdso [deleted symlink]
tools/arch/s390/vdso [deleted symlink]
tools/arch/x86/vdso [deleted symlink]
tools/testing/selftests/vDSO/Makefile
tools/testing/selftests/vDSO/vdso_test_chacha.c
tools/testing/selftests/vDSO/vgetrandom-chacha.S [new file with mode: 0644]