]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
tools: bpf: remove feature detection output
authorJakub Kicinski <jakub.kicinski@netronome.com>
Fri, 16 Mar 2018 06:26:17 +0000 (23:26 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 16 Mar 2018 08:23:46 +0000 (09:23 +0100)
bpf tools use feature detection for libbfd dependency, clean up
the output files on make clean.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/bpf/Makefile
tools/bpf/bpftool/Makefile

index acfaf4c8cc32c0abf8ae083bf2f79751b7133090..1ea545965ee36c3a8dca16fd0e34f19aa4894e60 100644 (file)
@@ -81,6 +81,8 @@ clean: bpftool_clean
        $(call QUIET_CLEAN, bpf-progs)
        $(Q)rm -rf $(OUTPUT)*.o $(OUTPUT)bpf_jit_disasm $(OUTPUT)bpf_dbg \
               $(OUTPUT)bpf_asm $(OUTPUT)bpf_exp.yacc.* $(OUTPUT)bpf_exp.lex.*
+       $(call QUIET_CLEAN, core-gen)
+       $(Q)rm -f $(OUTPUT)FEATURE-DUMP.bpf
 
 install: $(PROGS) bpftool_install
        $(call QUIET_INSTALL, bpf_jit_disasm)
index 50a715ac9e8bcfad0eddf8688c34c3c7be5aaa8c..4e69782c4a793f0860e6532aac5b6aaaecc873e0 100644 (file)
@@ -89,6 +89,8 @@ $(OUTPUT)%.o: %.c
 clean: $(LIBBPF)-clean
        $(call QUIET_CLEAN, bpftool)
        $(Q)$(RM) $(OUTPUT)bpftool $(OUTPUT)*.o $(OUTPUT)*.d
+       $(call QUIET_CLEAN, core-gen)
+       $(Q)$(RM) $(OUTPUT)FEATURE-DUMP.bpftool
 
 install: $(OUTPUT)bpftool
        $(call QUIET_INSTALL, bpftool)