libbpf: Add missing per-arch include path
authorBjörn Töpel <bjorn@rivosinc.com>
Fri, 27 Sep 2024 13:13:52 +0000 (15:13 +0200)
committerAndrii Nakryiko <andrii@kernel.org>
Tue, 8 Oct 2024 03:20:55 +0000 (20:20 -0700)
libbpf does not include the per-arch tools include path, e.g.
tools/arch/riscv/include. Some architectures depend those files to
build properly.

Include tools/arch/$(SUBARCH)/include in the libbpf build.

Fixes: 6d74d178fe6e ("tools: Add riscv barrier implementation")
Signed-off-by: Björn Töpel <bjorn@rivosinc.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20240927131355.350918-1-bjorn@kernel.org
tools/lib/bpf/Makefile

index 1b22f0f372880e3a37401838135ade535137012b..857a5f7b413d6dc4cbe7bc4167496674dd08d875 100644 (file)
@@ -61,7 +61,8 @@ ifndef VERBOSE
 endif
 
 INCLUDES = -I$(or $(OUTPUT),.) \
-          -I$(srctree)/tools/include -I$(srctree)/tools/include/uapi
+          -I$(srctree)/tools/include -I$(srctree)/tools/include/uapi \
+          -I$(srctree)/tools/arch/$(SRCARCH)/include
 
 export prefix libdir src obj