diff options
author | Björn Töpel <bjorn@rivosinc.com> | 2023-10-04 15:27:20 +0300 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2023-10-04 23:37:41 +0300 |
commit | 72fae6319962fca2ecd8bb4f4e8dbdda7fe9af6f (patch) | |
tree | 1d364aa4edf786f3956ba25896f531bd9618530b /tools/testing/selftests/bpf/Makefile | |
parent | 97a79e502e25e27a65b0506c9fb210cb2d89b52e (diff) | |
download | linux-72fae6319962fca2ecd8bb4f4e8dbdda7fe9af6f.tar.xz |
selftests/bpf: Enable lld usage for RISC-V
RISC-V has proper lld support. Use that, similar to what x86 does, for
urandom_read et al.
Signed-off-by: Björn Töpel <bjorn@rivosinc.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20231004122721.54525-3-bjorn@kernel.org
Diffstat (limited to 'tools/testing/selftests/bpf/Makefile')
-rw-r--r-- | tools/testing/selftests/bpf/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile index dca2d4dadb2c..a28cf927bc59 100644 --- a/tools/testing/selftests/bpf/Makefile +++ b/tools/testing/selftests/bpf/Makefile @@ -188,7 +188,7 @@ $(OUTPUT)/%:%.c $(Q)$(LINK.c) $^ $(LDLIBS) -o $@ # LLVM's ld.lld doesn't support all the architectures, so use it only on x86 -ifeq ($(SRCARCH),x86) +ifeq ($(SRCARCH),$(filter $(SRCARCH),x86 riscv)) LLD := lld else LLD := ld |