selftests/hid: force using our compiled libbpf headers
authorBenjamin Tissoires <bentiss@kernel.org>
Thu, 5 Oct 2023 15:55:34 +0000 (17:55 +0200)
committerBenjamin Tissoires <bentiss@kernel.org>
Wed, 11 Oct 2023 12:02:54 +0000 (14:02 +0200)
Turns out that we were relying on the globally installed headers, not
the ones we freshly compiled.
Add a manual include in CFLAGS to sort this out.

Tested-by: Nick Desaulniers <ndesaulniers@google.com> # Build
Tested-by: Justin Stitt <justinstitt@google.com>
Link: https://lore.kernel.org/r/20230825-wip-selftests-v3-3-639963c54109@kernel.org
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
tools/testing/selftests/hid/Makefile

index a28054113f4761f9f9ddc0993b8f6e7b211ba1e0..2b5ea18bde38bdec6de693e70823b1d5188b89ef 100644 (file)
@@ -22,6 +22,8 @@ CXX ?= $(CROSS_COMPILE)g++
 HOSTPKG_CONFIG := pkg-config
 
 CFLAGS += -g -O0 -rdynamic -Wall -Werror -I$(OUTPUT)
+CFLAGS += -I$(OUTPUT)/tools/include
+
 LDLIBS += -lelf -lz -lrt -lpthread
 
 # Silence some warnings when compiled with clang