selftests: vDSO: don't hard-code location of vDSO sources
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 22 Aug 2024 07:13:21 +0000 (09:13 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 30 Aug 2024 13:44:33 +0000 (15:44 +0200)
commit20a9af057cd7c4057c72c803dcf83c97eb5deb95
treec20804fd28ccd69b544d97a44b07e0cd2876b288
parent01b52f01c5a6bdc3b3e4229dccc84ed667e6867b
selftests: vDSO: don't hard-code location of vDSO sources

Architectures use different location for vDSO sources:

arch/mips/vdso
arch/sparc/vdso
arch/arm64/kernel/vdso
arch/riscv/kernel/vdso
arch/csky/kernel/vdso
arch/x86/um/vdso
arch/x86/entry/vdso
arch/powerpc/kernel/vdso
arch/arm/vdso
arch/loongarch/vdso

Don't hard-code vdso sources location in selftest Makefile. Instead
create a vdso/ symbolic link in tools/arch/$arch/ and update Makefile
accordingly.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
tools/arch/x86/vdso [new symlink]
tools/testing/selftests/vDSO/Makefile