OSDN Git Service

perf build: Install libbpf headers locally when building
authorQuentin Monnet <quentin@isovalent.com>
Sun, 7 Nov 2021 00:24:45 +0000 (00:24 +0000)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sun, 7 Nov 2021 18:39:28 +0000 (15:39 -0300)
commit6b491a86b77c0dc323ca49f3a29a0f67178b75f8
tree5be1f4e5ee27e0dbcd7add23f3731d1aebdd1b3a
parentf174940488dd7409e3d4dc96403380e67783d05d
perf build: Install libbpf headers locally when building

API headers from libbpf should not be accessed directly from the
library's source directory. Instead, they should be exported with "make
install_headers". Let's adjust perf's Makefile to install those headers
locally when building libbpf.

v2:

- Fix $(LIBBPF_OUTPUT) when $(OUTPUT) is null.
- Make sure the recipe for $(LIBBPF_OUTPUT) is not under a "ifdef".

Signed-off-by: Quentin Monnet <quentin@isovalent.com>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Andrii Nakryiko <andrii@kernel.org>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Song Liu <songliubraving@fb.com>
Cc: bpf@vger.kernel.org
Cc: netdev@vger.kernel.org
Link: http://lore.kernel.org/lkml/20211107002445.4790-1-quentin@isovalent.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Makefile.perf