summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorNathan Chancellor <nathan@kernel.org>2022-02-01 14:25:04 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-02-08 18:30:39 +0100
commit2324f5fcdf9dd104b996d12cd0c173ddcc3c950f (patch)
tree91704e02bb9511c7e6b603f3cbfc8efb98e626f0 /tools
parent1536fafa23ac072ab1a8293ed8efca808b20cfa7 (diff)
downloadlinux-stable-2324f5fcdf9dd104b996d12cd0c173ddcc3c950f.tar.gz
linux-stable-2324f5fcdf9dd104b996d12cd0c173ddcc3c950f.tar.bz2
linux-stable-2324f5fcdf9dd104b996d12cd0c173ddcc3c950f.zip
tools/resolve_btfids: Do not print any commands when building silently
commit 7f3bdbc3f13146eb9d07de81ea71f551587a384b upstream. When building with 'make -s', there is some output from resolve_btfids: $ make -sj"$(nproc)" oldconfig prepare MKDIR .../tools/bpf/resolve_btfids/libbpf/ MKDIR .../tools/bpf/resolve_btfids//libsubcmd LINK resolve_btfids Silent mode means that no information should be emitted about what is currently being done. Use the $(silent) variable from Makefile.include to avoid defining the msg macro so that there is no information printed. Fixes: fbbb68de80a4 ("bpf: Add resolve_btfids tool to resolve BTF IDs in ELF object") Signed-off-by: Nathan Chancellor <nathan@kernel.org> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20220201212503.731732-1-nathan@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/bpf/resolve_btfids/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/bpf/resolve_btfids/Makefile b/tools/bpf/resolve_btfids/Makefile
index bb9fa8de7e62..af9f9d3534c9 100644
--- a/tools/bpf/resolve_btfids/Makefile
+++ b/tools/bpf/resolve_btfids/Makefile
@@ -9,7 +9,11 @@ ifeq ($(V),1)
msg =
else
Q = @
- msg = @printf ' %-8s %s%s\n' "$(1)" "$(notdir $(2))" "$(if $(3), $(3))";
+ ifeq ($(silent),1)
+ msg =
+ else
+ msg = @printf ' %-8s %s%s\n' "$(1)" "$(notdir $(2))" "$(if $(3), $(3))";
+ endif
MAKEFLAGS=--no-print-directory
endif