Skip to content

Commit fbc4e6a

Browse files
tohojokernel-patches-bot
authored andcommitted
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: d71fa5c ("bpf: Add kernel module with user mode driver that populates bpffs.") Signed-off-by: Toke Høiland-Jørgensen <[email protected]>
1 parent 5c9deb8 commit fbc4e6a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

kernel/bpf/preload/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/FEATURE-DUMP.libbpf
2+
/bpf_helper_defs.h
3+
/feature
4+
/bpf_preload_umd

kernel/bpf/preload/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ userccflags += -I $(srctree)/tools/include/ -I $(srctree)/tools/include/uapi \
1212

1313
userprogs := bpf_preload_umd
1414

15+
clean-files := $(userprogs) bpf_helper_defs.h FEATURE-DUMP.libbpf staticobjs/ feature/
16+
1517
bpf_preload_umd-objs := iterators/iterators.o
1618
bpf_preload_umd-userldlibs := $(LIBBPF_A) -lelf -lz
1719

0 commit comments

Comments
 (0)