Anders Roxell <anders.roxell@xxxxxxxxxx> writes: > On Sat, 19 Nov 2022 at 18:19, Björn Töpel <bjorn@xxxxxxxxxx> wrote: [...] >> Now that BPF builds are starting to show up in more places >> (selftests/net, and soon selftests/hid), maybe it would be cleaner to >> move parts of the BPF builds to lib.mk? > > Yes, since its in tc-testing too. > Maybe thats what we should do already now? Ok, so there's three BPF builds, in addition to selftests/bpf. Do you suggest moving (cross-compiled) libbpf builds (for bpf_helpers_defs.h generation) and some kind of clang BPF build-rule to lib.mk? Or would you like more things there, like resolve_btfids? I guess this patch could go in regardless, and fix the build *now*, and do a lib.mk thing as a follow-up? Björn