Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests: arm64: 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=...).

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: linux-kselftest@vger.kernel.org
Cc: Ingo Molnar <mingo@redhat.com>
Cc: <stable@vger.kernel.org> # 5.18+
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>

authored by

Mathieu Desnoyers and committed by
Shuah Khan
7482c191 65177e47

+2 -2
+1 -1
tools/testing/selftests/arm64/fp/Makefile
··· 3 3 # A proper top_srcdir is needed by KSFT(lib.mk) 4 4 top_srcdir = $(realpath ../../../../../) 5 5 6 - CFLAGS += -I$(top_srcdir)/usr/include/ 6 + CFLAGS += $(KHDR_INCLUDES) 7 7 8 8 TEST_GEN_PROGS := fp-stress \ 9 9 sve-ptrace sve-probe-vls \
+1 -1
tools/testing/selftests/arm64/tags/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 2 3 - CFLAGS += -I../../../../../usr/include/ 3 + CFLAGS += $(KHDR_INCLUDES) 4 4 TEST_GEN_PROGS := tags_test 5 5 TEST_PROGS := run_tags_test.sh 6 6