Skip to content

Commit 8543e43

Browse files
committed
bpf, libbpf: fix quiet install_headers
Both btf.h and xsk.h headers are not installed quietly due to missing '\' for the call to QUIET_INSTALL. Lets fix it. Before: # make install_headers INSTALL headers if [ ! -d '''/usr/local/include/bpf' ]; then install -d -m 755 '''/usr/local/include/bpf'; fi; install btf.h -m 644 '''/usr/local/include/bpf'; if [ ! -d '''/usr/local/include/bpf' ]; then install -d -m 755 '''/usr/local/include/bpf'; fi; install xsk.h -m 644 '''/usr/local/include/bpf'; # ls /usr/local/include/bpf/ bpf.h btf.h libbpf.h xsk.h After: # make install_headers INSTALL headers # ls /usr/local/include/bpf/ bpf.h btf.h libbpf.h xsk.h Fixes: a493f5f ("libbpf: Install btf.h with libbpf") Fixes: 379e201 ("libbpf: add xsk.h to install_headers target") Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Andrii Nakryiko <andriin@fb.com>
1 parent 89dedae commit 8543e43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/lib/bpf/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,8 @@ install_lib: all_cmd
220220
install_headers:
221221
$(call QUIET_INSTALL, headers) \
222222
$(call do_install,bpf.h,$(prefix)/include/bpf,644); \
223-
$(call do_install,libbpf.h,$(prefix)/include/bpf,644);
224-
$(call do_install,btf.h,$(prefix)/include/bpf,644);
223+
$(call do_install,libbpf.h,$(prefix)/include/bpf,644); \
224+
$(call do_install,btf.h,$(prefix)/include/bpf,644); \
225225
$(call do_install,xsk.h,$(prefix)/include/bpf,644);
226226

227227
install: install_lib

0 commit comments

Comments
 (0)