mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-08-21 16:31:14 +02:00

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>
19 lines
642 B
ArmAsm
19 lines
642 B
ArmAsm
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (C) 2024 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
|
|
*/
|
|
|
|
#define __ASSEMBLY__
|
|
|
|
#if defined(__aarch64__)
|
|
#include "../../../../arch/arm64/kernel/vdso/vgetrandom-chacha.S"
|
|
#elif defined(__loongarch__)
|
|
#include "../../../../arch/loongarch/vdso/vgetrandom-chacha.S"
|
|
#elif defined(__powerpc__) || defined(__powerpc64__)
|
|
#include "../../../../arch/powerpc/kernel/vdso/vgetrandom-chacha.S"
|
|
#elif defined(__s390x__)
|
|
#include "../../../../arch/s390/kernel/vdso64/vgetrandom-chacha.S"
|
|
#elif defined(__x86_64__)
|
|
#include "../../../../arch/x86/entry/vdso/vgetrandom-chacha.S"
|
|
#endif
|