diff options
author | Björn Töpel <bjorn@rivosinc.com> | 2024-09-27 15:13:52 +0200 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2024-10-08 05:20:55 +0200 |
commit | 710fbca820c721cdd60fa8c5bbe9deb4c0788aae (patch) | |
tree | 1285e7d4327cb8b16470e985407bed6dfc0d9e8d /tools/lib | |
parent | selftests/bpf: Emit top frequent code lines in veristat (diff) | |
download | linux-710fbca820c721cdd60fa8c5bbe9deb4c0788aae.tar.xz linux-710fbca820c721cdd60fa8c5bbe9deb4c0788aae.zip |
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
Diffstat (limited to 'tools/lib')
-rw-r--r-- | tools/lib/bpf/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/lib/bpf/Makefile b/tools/lib/bpf/Makefile index 1b22f0f37288..857a5f7b413d 100644 --- a/tools/lib/bpf/Makefile +++ b/tools/lib/bpf/Makefile @@ -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 |