selftests/bpf: BPF object files should depend only on libbpf headers
authorAndrii Nakryiko <andriin@fb.com>
Thu, 20 Aug 2020 23:12:35 +0000 (16:12 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 21 Aug 2020 22:40:22 +0000 (15:40 -0700)
commit3ac2e20fba07e57cd229091a568ac14a5434e6bb
treea3b4e0abcd4ac176ae689d55012fd93bf9b9ea00
parent3c4a594bc81a9fd1118c34c0b959aa732f34478e
selftests/bpf: BPF object files should depend only on libbpf headers

There is no need to re-build BPF object files if any of the sources of libbpf
change. So record more precise dependency only on libbpf/bpf_*.h headers. This
eliminates unnecessary re-builds.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200820231250.1293069-2-andriin@fb.com
tools/testing/selftests/bpf/Makefile