]> git.baikalelectronics.ru Git - kernel.git/commit
tools: bpftool: add feature check for zlib
authorPeter Wu <peter@lekensteyn.nl>
Tue, 13 Aug 2019 00:38:33 +0000 (01:38 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 13 Aug 2019 14:22:07 +0000 (16:22 +0200)
commit86cded5d7e2f0a4e1e774c073b66f5a057b62359
treebf25c7003ba841d227aa82a900cb5df944e0694b
parent5190c09f08a1e2a18da5d8efbae582a7db3129bc
tools: bpftool: add feature check for zlib

bpftool requires libelf, and zlib for decompressing /proc/config.gz.
zlib is a transitive dependency via libelf, and became mandatory since
elfutils 0.165 (Jan 2016). The feature check of libelf is already done
in the elfdep target of tools/lib/bpf/Makefile, pulled in by bpftool via
a dependency on libbpf.a. Add a similar feature check for zlib.

Suggested-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/bpf/bpftool/Makefile