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)
commit710fbca820c721cdd60fa8c5bbe9deb4c0788aae
tree1285e7d4327cb8b16470e985407bed6dfc0d9e8d
parenta5da3d65681f86f582420b5aea49c1d9a7c7e51e
libbpf: Add missing per-arch include path

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