samples/bpf: Partially fixes the bpf.o build
authorMickaël Salaün <mic@digikod.net>
Fri, 26 Jan 2018 00:39:30 +0000 (01:39 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 26 Jan 2018 22:57:10 +0000 (23:57 +0100)
commitc25ef6a5e62fa212d298ce24995ce239f29b5f96
treee2154d9a6f0dd70ea7f77a80dfe5b98df6b34d6c
parent771fc607e6b97be8f0cc7dfaa61173009c2214d4
samples/bpf: Partially fixes the bpf.o build

Do not build lib/bpf/bpf.o with this Makefile but use the one from the
library directory.  This avoid making a buggy bpf.o file (e.g. missing
symbols).

This patch is useful if some code (e.g. Landlock tests) needs both the
bpf.o (from tools/lib/bpf) and the bpf_load.o (from samples/bpf).

Signed-off-by: Mickaël Salaün <mic@digikod.net>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
samples/bpf/Makefile