bpf/preload: make sure Makefile cleans up after itself, and add .gitignore
Subsystems (3)
PATCH 1/1 bpf/preload: make sure Makefile cleans up after itself, and add .gitignore
The Makefile in bpf/preload builds a local copy of libbpf, but does not properly clean up after itself. This can lead to subsequent compilation failures, since the feature detection cache is kept around which can lead subsequent detection to fail.
Fix this by properly setting clean-files, and while we're at it, also add a .gitignore for the directory to ignore the build artifacts.
--- kernel/bpf/preload/.gitignore | 4 ++++ kernel/bpf/preload/Makefile | 2 ++ 2 files changed, 6 insertions(+) create mode 100644 kernel/bpf/preload/.gitignore
kernel/bpf/preload/.gitignore new file +4 -0
@@ -0,0 +1,4 @@ +/FEATURE-DUMP.libbpf +/bpf_helper_defs.h +/feature +/bpf_preload_umd
kernel/bpf/preload/Makefile +2 -0
@@ -12,6 +12,8 @@ userccflags += -I $(srctree)/tools/include/ -I $(srctree)/tools/include/uapi \ userprogs := bpf_preload_umd +clean-files := $(userprogs) bpf_helper_defs.h FEATURE-DUMP.libbpf staticobjs/ feature/ + bpf_preload_umd-objs := iterators/iterators.o bpf_preload_umd-userldlibs := $(LIBBPF_A) -lelf -lz
Signature · 1 line
2.28.0
This patch was applied to bpf/bpf-next.git (refs/heads/master):
Hello:
This patch was applied to bpf/bpf-next.git (refs/heads/master):
Quoted 9 lines · On Sun, 27 Sep 2020 21:30:05 +0200 you wrote:
The
Makefilein bpf/preload builds a local copy of libbpf, but does not properly clean up after itself. This can lead to subsequent compilation failures, since the feature detection cache is kept around which can lead subsequent detection to fail.Fix this by properly setting clean-files, and while we're at it, also add a .gitignore for the directory to ignore the build artifacts.
[...]
Here is the summary with links:
- [bpf-next] bpf/preload: make sure Makefile cleans up after itself, and add .gitignore
https://git.kernel.org/bpf/bpf-next/c/9d9aae53b96d
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html