summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/riscv
diff options
context:
space:
mode:
authorAndrew Jones <ajones@ventanamicro.com>2023-09-18 15:15:23 +0200
committerPalmer Dabbelt <palmer@rivosinc.com>2023-09-21 04:22:26 -0700
commitfc9fdf2c5ab71e27e64b9e14606b677cc2e45884 (patch)
treeede8178f89319dafd273dc233f804a21714459fe /tools/testing/selftests/riscv
parent9c7646d5ffd2b8bf720a0b77897f6c5095dfc53b (diff)
downloadlinux-stable-fc9fdf2c5ab71e27e64b9e14606b677cc2e45884.tar.gz
linux-stable-fc9fdf2c5ab71e27e64b9e14606b677cc2e45884.tar.bz2
linux-stable-fc9fdf2c5ab71e27e64b9e14606b677cc2e45884.zip
RISC-V: selftests: Statically link hwprobe test
Statically linking makes it more convenient to copy the test to a minimal busybox environment. Signed-off-by: Andrew Jones <ajones@ventanamicro.com> Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20230918131518.56803-12-ajones@ventanamicro.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'tools/testing/selftests/riscv')
-rw-r--r--tools/testing/selftests/riscv/hwprobe/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/riscv/hwprobe/Makefile b/tools/testing/selftests/riscv/hwprobe/Makefile
index ebdbb3c22e54..5f614c3ba598 100644
--- a/tools/testing/selftests/riscv/hwprobe/Makefile
+++ b/tools/testing/selftests/riscv/hwprobe/Makefile
@@ -7,4 +7,4 @@ TEST_GEN_PROGS := hwprobe
include ../../lib.mk
$(OUTPUT)/hwprobe: hwprobe.c sys_hwprobe.S
- $(CC) -o$@ $(CFLAGS) $(LDFLAGS) $^
+ $(CC) -static -o$@ $(CFLAGS) $(LDFLAGS) $^