]> git.baikalelectronics.ru Git - kernel.git/commit
samples/bpf: Clean up samples/bpf build failes
authorAndrii Nakryiko <andrii@kernel.org>
Wed, 1 Dec 2021 23:28:22 +0000 (15:28 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 2 Dec 2021 23:23:40 +0000 (15:23 -0800)
commit2222368551b3470fda6981fc5a44037eac44b6d1
tree0f5dfede9d448a1c72e77afdc284f4052e7f9df6
parent2efec7098cef4d2255aed8b27bb58c547ba41104
samples/bpf: Clean up samples/bpf build failes

Remove xdp_samples_user.o rule redefinition which generates Makefile
warning and instead override TPROGS_CFLAGS. This seems to work fine when
building inside selftests/bpf.

That was one big head-scratcher before I found that generic
Makefile.target hid this surprising specialization for for xdp_samples_user.o.

Main change is to use actual locally installed libbpf headers.

Also drop printk macro re-definition (not even used!).

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20211201232824.3166325-8-andrii@kernel.org
samples/bpf/Makefile
samples/bpf/Makefile.target
samples/bpf/hbm_kern.h
samples/bpf/lwt_len_hist_kern.c