From: Mathieu Desnoyers Date: Fri, 27 Jan 2023 13:57:34 +0000 (-0500) Subject: selftests: media_tests: Fix incorrect kernel headers search path X-Git-Tag: v6.3-rc1~131^2~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f2f9592b736087f695230410fb8dc1afd3cafbbb;p=thirdparty%2Flinux.git selftests: media_tests: 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 Cc: Shuah Khan Cc: linux-kselftest@vger.kernel.org Cc: Ingo Molnar Cc: # 5.18+ Signed-off-by: Shuah Khan --- diff --git a/tools/testing/selftests/media_tests/Makefile b/tools/testing/selftests/media_tests/Makefile index 60826d7d37d49..471d83e61d95e 100644 --- a/tools/testing/selftests/media_tests/Makefile +++ b/tools/testing/selftests/media_tests/Makefile @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 # -CFLAGS += -I../ -I../../../../usr/include/ +CFLAGS += -I../ $(KHDR_INCLUDES) TEST_GEN_PROGS := media_device_test media_device_open video_device_test include ../lib.mk