objtool: Properly support make V=1
authorIan Rogers <irogers@google.com>
Thu, 26 Jan 2023 19:06:05 +0000 (11:06 -0800)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 31 Jan 2023 00:28:16 +0000 (16:28 -0800)
The Q variable was being used but never correctly set up. Add the
setting up and use in place of @.

Signed-off-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20230126190606.40739-3-irogers@google.com
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
tools/objtool/Makefile

index 3505ae4b0e3644d5e350c91047cc9df125aa8514..d54b66986627c26ac22ae09296c5f4cfe9d16e6e 100644 (file)
@@ -45,6 +45,12 @@ CFLAGS += $(if $(elfshdr),,-DLIBELF_USE_DEPRECATED)
 AWK = awk
 MKDIR = mkdir
 
+ifeq ($(V),1)
+  Q =
+else
+  Q = @
+endif
+
 BUILD_ORC := n
 
 ifeq ($(SRCARCH),x86)
@@ -56,18 +62,18 @@ export srctree OUTPUT CFLAGS SRCARCH AWK
 include $(srctree)/tools/build/Makefile.include
 
 $(OBJTOOL_IN): fixdep FORCE
-       @$(CONFIG_SHELL) ./sync-check.sh
-       @$(MAKE) $(build)=objtool
+       $(Q)$(CONFIG_SHELL) ./sync-check.sh
+       $(Q)$(MAKE) $(build)=objtool
 
 $(OBJTOOL): $(LIBSUBCMD) $(OBJTOOL_IN)
        $(QUIET_LINK)$(CC) $(OBJTOOL_IN) $(LDFLAGS) -o $@
 
 
 $(LIBSUBCMD_OUTPUT):
-       @$(MKDIR) -p $@
+       $(Q)$(MKDIR) -p $@
 
 $(LIBSUBCMD): fixdep $(LIBSUBCMD_OUTPUT) FORCE
-       @$(MAKE) -C $(LIBSUBCMD_DIR) O=$(LIBSUBCMD_OUTPUT) \
+       $(Q)$(MAKE) -C $(LIBSUBCMD_DIR) O=$(LIBSUBCMD_OUTPUT) \
                DESTDIR=$(LIBSUBCMD_OUTPUT) prefix= subdir= \
                $@ install_headers