• Quentin Monnet's avatar
    tools: bpf: account for generated feature/ and libbpf/ directories · fbdb620b
    Quentin Monnet authored
    When building "tools/bpf" from the top of the Linux repository, the
    build system passes a value for the $(OUTPUT) Makefile variable to
    tools/bpf/Makefile and tools/bpf/bpftool/Makefile, which results in
    generating "libbpf/" (for bpftool) and "feature/" (bpf and bpftool)
    directories inside the tree.
    
    This commit adds such directories to the relevant .gitignore files, and
    edits the Makefiles to ensure they are removed on "make clean". The use
    of "rm" is also made consistent throughout those Makefiles (relies on
    the $(RM) variable, use "--" to prevent interpreting
    $(OUTPUT)/$(DESTDIR) as options.
    
    v2:
    - New patch.
    Signed-off-by: default avatarQuentin Monnet <quentin.monnet@netronome.com>
    Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
    fbdb620b
.gitignore 71 Bytes