Skip to content

Commit fc9fdf2

Browse files
Andrew Jonespalmer-dabbelt
authored andcommitted
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>
1 parent 9c7646d commit fc9fdf2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • tools/testing/selftests/riscv/hwprobe

tools/testing/selftests/riscv/hwprobe/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ TEST_GEN_PROGS := hwprobe
77
include ../../lib.mk
88

99
$(OUTPUT)/hwprobe: hwprobe.c sys_hwprobe.S
10-
$(CC) -o$@ $(CFLAGS) $(LDFLAGS) $^
10+
$(CC) -static -o$@ $(CFLAGS) $(LDFLAGS) $^

0 commit comments

Comments
 (0)