]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf,selftests/bpf: Fix clean targets
authorAndrii Nakryiko <andriin@fb.com>
Fri, 10 Jan 2020 05:17:14 +0000 (21:17 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 10 Jan 2020 05:55:08 +0000 (21:55 -0800)
commitcef23c82191a66312c6408715a4c13564ce31640
tree6995c76f5a0f89d50ee8501893adc087f427aede
parent18f15d647ed2e873a7f82179fcee992077ecb14c
libbpf,selftests/bpf: Fix clean targets

Libbpf's clean target should clean out generated files in $(OUTPUT) directory
and not make assumption that $(OUTPUT) directory is current working directory.

Selftest's Makefile should delegate cleaning of libbpf-generated files to
libbpf's Makefile. This ensures more robust clean up.

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