Skip to content

Commit 7f3bdbc

Browse files
nathanchanceborkmann
authored andcommitted
tools/resolve_btfids: Do not print any commands when building silently
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: fbbb68d ("bpf: Add resolve_btfids tool to resolve BTF IDs in ELF object") Signed-off-by: Nathan Chancellor <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent b293dcc commit 7f3bdbc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/bpf/resolve_btfids/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ ifeq ($(V),1)
99
msg =
1010
else
1111
Q = @
12-
msg = @printf ' %-8s %s%s\n' "$(1)" "$(notdir $(2))" "$(if $(3), $(3))";
12+
ifeq ($(silent),1)
13+
msg =
14+
else
15+
msg = @printf ' %-8s %s%s\n' "$(1)" "$(notdir $(2))" "$(if $(3), $(3))";
16+
endif
1317
MAKEFLAGS=--no-print-directory
1418
endif
1519

0 commit comments

Comments
 (0)