On Thu, Mar 6, 2025 at 3:56 PM Jakub Kicinski kuba@kernel.org wrote:
On Thu, 06 Mar 2025 14:35:09 -0500 Willem de Bruijn wrote:
How does tools/testing/selftests/net/lib get compiled? The other subdirs of net are separate explicit targets in tools/testing/selftests/Makefile
There is some magic / hack at top level:
# Networking tests want the net/lib target, include it automatically ifneq ($(filter net drivers/net drivers/net/hw,$(TARGETS)),) ifeq ($(filter net/lib,$(TARGETS)),) INSTALL_DEP_TARGETS := net/lib endif endif
Oh right.
https://web.git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/tree...
And what is the magic that avoids the need for adding bpf objects to .gitignore?
All BPF files are suffixed with .bpf.c and we turn that into .bpf.o So they have an .o at the end, I think the global gitignore ignores those?
Also makes sense. Thanks!
Reviewed-by: Willem de Bruijn willemb@google.com