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 https://web.git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/tree/tools/testing/selftests/Makefile#n129 > 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?