Skip to content

Commit 4f11410

Browse files
compudjmpe
authored andcommitted
selftests/powerpc: Fix incorrect kernel headers search path
Use $(KHDR_INCLUDES) as lookup path for kernel headers. This prevents building against kernel headers from the build environment in scenarios where kernel headers are installed into a specific output directory (O=...). Cc: [email protected] # v5.18+ Signed-off-by: Mathieu Desnoyers <[email protected]> Acked-by: Shuah Khan <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 08273c9 commit 4f11410

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

tools/testing/selftests/powerpc/ptrace/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ TESTS_64 := $(patsubst %,$(OUTPUT)/%,$(TESTS_64))
3333
$(TESTS_64): CFLAGS += -m64
3434
$(TM_TESTS): CFLAGS += -I../tm -mhtm
3535

36-
CFLAGS += -I../../../../../usr/include -fno-pie
36+
CFLAGS += $(KHDR_INCLUDES) -fno-pie
3737

3838
$(OUTPUT)/ptrace-gpr: ptrace-gpr.S
3939
$(OUTPUT)/ptrace-pkey $(OUTPUT)/core-pkey: LDLIBS += -pthread

tools/testing/selftests/powerpc/security/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ TEST_PROGS := mitigation-patching.sh
55

66
top_srcdir = ../../../../..
77

8-
CFLAGS += -I../../../../../usr/include
8+
CFLAGS += $(KHDR_INCLUDES)
99

1010
include ../../lib.mk
1111

tools/testing/selftests/powerpc/syscalls/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22
TEST_GEN_PROGS := ipc_unmuxed rtas_filter
33

4-
CFLAGS += -I../../../../../usr/include
4+
CFLAGS += $(KHDR_INCLUDES)
55

66
top_srcdir = ../../../../..
77
include ../../lib.mk

tools/testing/selftests/powerpc/tm/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ $(TEST_GEN_PROGS): ../harness.c ../utils.c
1717
CFLAGS += -mhtm
1818

1919
$(OUTPUT)/tm-syscall: tm-syscall-asm.S
20-
$(OUTPUT)/tm-syscall: CFLAGS += -I../../../../../usr/include
20+
$(OUTPUT)/tm-syscall: CFLAGS += $(KHDR_INCLUDES)
2121
$(OUTPUT)/tm-tmspr: CFLAGS += -pthread
2222
$(OUTPUT)/tm-vmx-unavail: CFLAGS += -pthread -m64
2323
$(OUTPUT)/tm-resched-dscr: ../pmu/lib.c

0 commit comments

Comments
 (0)