tools: bpf: consistent make bpf_install
authorJiri Benc <jbenc@redhat.com>
Thu, 8 Mar 2018 22:00:37 +0000 (23:00 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 9 Mar 2018 09:22:59 +0000 (10:22 +0100)
commitfde68c5becb552ce96fcf1d123624b5c11baa187
treec828c3f12ea8899c51b342a23960477dc080d8b1
parent5a8997f207154826c7bf1a97acf75ffb44159c50
tools: bpf: consistent make bpf_install

Currently, make bpf_install in tools/ does not respect DESTDIR. Moreover, it
installs to /usr/bin/ unconditionally.

Let it respect DESTDIR and allow prefix to be specified. Also, to be more
consistent with bpftool and with the usual customs, default the prefix to
/usr/local instead of /usr.

Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/bpf/Makefile