Linux Kernel Selftest development
 help / color / mirror / Atom feed
* [PATCH bpf-next 1/2] libbpf: Add missing per-arch include path
@ 2024-09-27 13:13 Björn Töpel
  2024-09-27 13:13 ` [PATCH bpf-next 2/2] selftests: bpf: " Björn Töpel
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Björn Töpel @ 2024-09-27 13:13 UTC (permalink / raw)
  To: Andrii Nakryiko, Eduard Zingerman, Mykola Lysenko, bpf, netdev
  Cc: Björn Töpel, linux-kselftest, linux-kernel, linux-riscv,
	Charlie Jenkins

From: Björn Töpel <bjorn@rivosinc.com>

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>
---
 tools/lib/bpf/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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
 

base-commit: db5ca265e3334b48c4e3fa07eef79e8bc578c430
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-11-07 14:32 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-27 13:13 [PATCH bpf-next 1/2] libbpf: Add missing per-arch include path Björn Töpel
2024-09-27 13:13 ` [PATCH bpf-next 2/2] selftests: bpf: " Björn Töpel
2024-09-27 20:52   ` Andrii Nakryiko
2024-09-28  9:14     ` Björn Töpel
2024-09-27 20:50 ` [PATCH bpf-next 1/2] libbpf: " Andrii Nakryiko
2024-09-28  9:11   ` Björn Töpel
2024-10-08  3:30 ` patchwork-bot+netdevbpf
2024-11-04 10:25   ` Björn Töpel
2024-11-06 22:04     ` Andrii Nakryiko
2024-11-07 14:32       ` Björn Töpel
2024-11-04 10:04 ` Alexandre Ghiti
2024-11-05 11:46 ` Kexy Biscuit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox