]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Enforce libbpf build before BPF programs are built
authorAndrii Nakryiko <andriin@fb.com>
Fri, 11 Oct 2019 22:01:45 +0000 (15:01 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 12 Oct 2019 23:15:10 +0000 (16:15 -0700)
commit53f6279f3017f5dffd5da0635fa23acfd5f9db90
tree532c0a4a4df8b4102fe1351900a13b985557dcf0
parent63efc888cc31cf8bc3c2160d21ee30b017bf0fc6
selftests/bpf: Enforce libbpf build before BPF programs are built

Given BPF programs rely on libbpf's bpf_helper_defs.h, which is
auto-generated during libbpf build, libbpf build has to happen before
we attempt progs/*.c build. Enforce it as order-only dependency.

Fixes: 2cf90ad4a669 ("libbpf: auto-generate list of BPF helper definitions")
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20191011220146.3798961-2-andriin@fb.com
tools/testing/selftests/bpf/Makefile