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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Apr 2018 09:02:12 +0000 (11:02 +0200)
commitb086dd2d79d911abbc6001ef2d59dc6a042ae5d9
tree3909c08a4217f4fa73d50a8aab6db852fa4f8ee8
parent64e5e46cdd8b3fcfed016dc89f057087346ad742
samples/bpf: Partially fixes the bpf.o build

[ Upstream commit c25ef6a5e62fa212d298ce24995ce239f29b5f96 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
samples/bpf/Makefile