]> www.infradead.org Git - users/willy/xarray.git/commit
samples/bpf: Allow building with custom bpftool
authorViktor Malik <vmalik@redhat.com>
Wed, 25 Oct 2023 06:19:14 +0000 (08:19 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 26 Oct 2023 13:32:13 +0000 (15:32 +0200)
commit37db10bc247d5d0b448babd7ff386f092246e732
tree571972ac5c029ce9bc18352630b1de1084a751a0
parentf56bcfadf7d6d56b099726df4fc262b76486b0e0
samples/bpf: Allow building with custom bpftool

samples/bpf build its own bpftool boostrap to generate vmlinux.h as well
as some BPF objects. This is a redundant step if bpftool has been
already built, so update samples/bpf/Makefile such that it accepts a
path to bpftool passed via the BPFTOOL variable. The approach is
practically the same as tools/testing/selftests/bpf/Makefile uses.

Signed-off-by: Viktor Malik <vmalik@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/bd746954ac271b02468d8d951ff9f11e655d485b.1698213811.git.vmalik@redhat.com
samples/bpf/Makefile