Skip to content

Commit fc9fdf2

Browse files
jones-drewpalmer-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 <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 9c7646d commit fc9fdf2

File tree

1 file changed

+1
-1
lines changed
  • tools/testing/selftests/riscv/hwprobe

1 file changed

+1
-1
lines changed

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)