Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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.

Fixes: d71fa5c9763c ("bpf: Add kernel module with user mode driver that populates bpffs.")
Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200927193005.8459-1-toke@redhat.com

authored by

Toke Høiland-Jørgensen and committed by
Alexei Starovoitov
9d9aae53 3aae4a38

+6
+4
kernel/bpf/preload/.gitignore
··· 1 + /FEATURE-DUMP.libbpf 2 + /bpf_helper_defs.h 3 + /feature 4 + /bpf_preload_umd
+2
kernel/bpf/preload/Makefile
··· 12 12 13 13 userprogs := bpf_preload_umd 14 14 15 + clean-files := $(userprogs) bpf_helper_defs.h FEATURE-DUMP.libbpf staticobjs/ feature/ 16 + 15 17 bpf_preload_umd-objs := iterators/iterators.o 16 18 bpf_preload_umd-userldlibs := $(LIBBPF_A) -lelf -lz 17 19