]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'fix-samples'
authorAlexei Starovoitov <ast@kernel.org>
Tue, 15 May 2018 05:54:40 +0000 (22:54 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 15 May 2018 05:54:55 +0000 (22:54 -0700)
commit8d762c14bc615ec49edf9c2117612247175d6786
tree8dad67a2a984d4e554463111a1f7fc43094b8794
parent18759ac2b7e39f79cf793b731fbb3bc1799b1df8
parentcc6823b24fa07ebac48ab95f7fa2b2cca4065b6e
Merge branch 'fix-samples'

Jakub Kicinski says:

====================
Following patches address build issues after recent move to libbpf.
For out-of-tree builds we would see the following error:

gcc: error: samples/bpf/../../tools/lib/bpf/libbpf.a: No such file or directory

libbpf build system is now always invoked explicitly rather than
relying on building single objects most of the time.  We need to
resolve the friction between Kbuild and tools/ build system.

Mini-library called libbpf.h in samples is renamed to bpf_insn.h,
using linux/filter.h seems not completely trivial since some samples
get upset when order on include search path in changed.  We do have
to rename libbpf.h, however, because otherwise it's hard to reliably
get to libbpf's header in out-of-tree builds.

v2:
 - fix the build error harder (patch 3);
 - add patch 5 (make clang less noisy).
====================

Signed-off-by: Alexei Starovoitov <ast@kernel.org>