]> www.infradead.org Git - users/willy/xarray.git/commit
selftests: net: extract BPF building logic from the Makefile
authorJakub Kicinski <kuba@kernel.org>
Tue, 23 Apr 2024 18:35:42 +0000 (11:35 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 25 Apr 2024 03:15:45 +0000 (20:15 -0700)
commit3f584c211d8cc049848620472aaec1bebd8ddaae
treed66380e8a6418c7d824b07c2994fbcae96d63684
parent6b88ce902f0bdcb3694a6ceddc8b3d0b40db3772
selftests: net: extract BPF building logic from the Makefile

The BPF sample building code looks a little bit spaghetti-ish
so move it out to its own Makefile snippet. Similar in the spirit
to how we include lib.mk. libynl will soon get a similar snippet.

There is a small change hiding in the move, the relative
paths (../../.., ../.. etc) are replaced with variables
from lib.mk such as top_srcdir and selfdir.

Link: https://lore.kernel.org/r/20240423183542.3807234-3-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/Makefile
tools/testing/selftests/net/bpf.mk [new file with mode: 0644]