On Tue, 2024-06-18 at 15:53 -0700, Andrii Nakryiko wrote: [...] > > +# Some source files are common to libbpf. > > +vpath %.c $(srctree)/kernel/bpf:$(srctree)/tools/lib/bpf > > this is something new, what does vpath do? (sorry if this was > discussed before and I missed it) I was unfamiliar with this thing as well: https://www.gnu.org/software/make/manual/html_node/Selective-Search.html basically it allows to add a directory to dependency search path. An alternative would be to make a soft link, e.g. like with ./tools/testing/selftests/bpf/disasm.c [...]