]> git.baikalelectronics.ru Git - kernel.git/commit
bpf/preload: Make sure Makefile cleans up after itself, and add .gitignore
authorToke Høiland-Jørgensen <toke@redhat.com>
Sun, 27 Sep 2020 19:30:05 +0000 (21:30 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 29 Sep 2020 18:15:01 +0000 (11:15 -0700)
commitc2f56c68abe0fbbd4ceedbe3173bb303cef14089
tree247eb09f4d7bb430324b09bd3786c87197537a1b
parent4621e11679cf384cf95fcda95442e24b6b05bafd
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: d49be41f7f8f ("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
kernel/bpf/preload/.gitignore [new file with mode: 0644]
kernel/bpf/preload/Makefile