]> git.baikalelectronics.ru Git - kernel.git/commit
tools: bpf: account for generated feature/ and libbpf/ directories
authorQuentin Monnet <quentin.monnet@netronome.com>
Fri, 30 Aug 2019 11:00:39 +0000 (12:00 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 30 Aug 2019 22:38:16 +0000 (00:38 +0200)
commita131282db95660b4a09c81a84bc7f9ef1e010829
treef8cddfe9cc7cd69705d711d4b6ffa01b2d9c87e8
parent0b777e734e2f2a22a9e7daba27fb6073c80aa7d4
tools: bpf: account for generated feature/ and libbpf/ directories

When building "tools/bpf" from the top of the Linux repository, the
build system passes a value for the $(OUTPUT) Makefile variable to
tools/bpf/Makefile and tools/bpf/bpftool/Makefile, which results in
generating "libbpf/" (for bpftool) and "feature/" (bpf and bpftool)
directories inside the tree.

This commit adds such directories to the relevant .gitignore files, and
edits the Makefiles to ensure they are removed on "make clean". The use
of "rm" is also made consistent throughout those Makefiles (relies on
the $(RM) variable, use "--" to prevent interpreting
$(OUTPUT)/$(DESTDIR) as options.

v2:
- New patch.

Signed-off-by: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/bpf/.gitignore
tools/bpf/Makefile
tools/bpf/bpftool/.gitignore
tools/bpf/bpftool/Makefile