Skip to contentSkip to conversation

tools: Get only verbose output with V=1

PATCH Superseded Robert Richter 2 participants 3 messages May 3, 2013 – Jul 12, 2013 perf events

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools: Get only verbose output with V=1

From: Robert Richter <[email protected]>

Fix having verbose build with V=0, e.g:

make V=0 -C tools/ perf

---
 tools/scripts/Makefile.include | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/scripts/Makefile.include +1 -1
index 2964b96..14b349f 100644
@@ -57,7 +57,7 @@ QUIET_SUBDIR0  = +$(MAKE) $(COMMAND_O) -C # space to separate -C and subdir
 QUIET_SUBDIR1  =
 
 ifneq ($(findstring $(MAKEFLAGS),s),s)
-ifndef V
+ifneq ($(V),1)
 	QUIET_CC       = @echo '   ' CC $@;
 	QUIET_AR       = @echo '   ' AR $@;
 	QUIET_LINK     = @echo '   ' LINK $@;
Signature · 1 line
1.8.1.1
#1 lore raw

PATCH v2 1/1 tools: Get only verbose output with V=1

Quoted 3 lines · Robert Richter

Fix having verbose build with V=0, e.g:

make V=0 -C tools/ perf

Arnaldo, there are some more issues with this. Updated patch below.

-Robert

Quoted 1 line

From 84b1d3c99dc591adfbfab54cf04e1dbeca8f6608 Mon Sep 17 00:00:00 2001

From: Robert Richter <[email protected]>
Date: Thu, 2 May 2013 18:19:09 +0200
Subject: [PATCH] tools: Get only verbose output with V=1

Fix having verbose build with V=0, e.g:

make V=0 -C tools/ perf

---
 tools/perf/Documentation/Makefile | 2 +-
 tools/perf/config/utilities.mak   | 2 +-
 tools/scripts/Makefile.include    | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
tools/perf/Documentation/Makefile +1 -1
index eb30044..f751757 100644
@@ -150,7 +150,7 @@ NO_SUBDIR = :
 endif
 
 ifneq ($(findstring $(MAKEFLAGS),s),s)
-ifndef V
+ifneq ($(V),1)
 	QUIET_ASCIIDOC	= @echo '   ' ASCIIDOC $@;
 	QUIET_XMLTO	= @echo '   ' XMLTO $@;
 	QUIET_DB2TEXI	= @echo '   ' DB2TEXI $@;
tools/perf/config/utilities.mak +1 -1
index 8ef3bd3..faffb52 100644
@@ -181,7 +181,7 @@ _gea_err  = $(if $(1),$(error Please set '$(1)' appropriately))
 
 # try-cc
 # Usage: option = $(call try-cc, source-to-build, cc-options, msg)
-ifndef V
+ifneq ($(V),1)
 TRY_CC_OUTPUT= > /dev/null 2>&1
 endif
 TRY_CC_MSG=echo "    CHK $(3)" 1>&2;
tools/scripts/Makefile.include +1 -1
index 2964b96..14b349f 100644
@@ -57,7 +57,7 @@ QUIET_SUBDIR0  = +$(MAKE) $(COMMAND_O) -C # space to separate -C and subdir
 QUIET_SUBDIR1  =
 
 ifneq ($(findstring $(MAKEFLAGS),s),s)
-ifndef V
+ifneq ($(V),1)
 	QUIET_CC       = @echo '   ' CC $@;
 	QUIET_AR       = @echo '   ' AR $@;
 	QUIET_LINK     = @echo '   ' LINK $@;
Signature · 1 line
1.8.1.1
#2 lore raw
tools: Get only verbose output with V=1
Commit-ID:  5125bc22e7871b46e71312d6cc4455e9eea1619d
Gitweb:     http://git.kernel.org/tip/5125bc22e7871b46e71312d6cc4455e9eea1619d
Author:     Robert Richter <[email protected]>
AuthorDate: Fri, 3 May 2013 15:49:53 +0200
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Mon, 8 Jul 2013 17:31:34 -0300

tools: Get only verbose output with V=1

Fix having verbose build with V=0, e.g:

make V=0 -C tools/ perf

---
 tools/perf/Documentation/Makefile | 2 +-
 tools/perf/config/utilities.mak   | 2 +-
 tools/scripts/Makefile.include    | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
tools/perf/Documentation/Makefile +1 -1
index eb30044..f751757 100644
@@ -150,7 +150,7 @@ NO_SUBDIR = :
 endif
 
 ifneq ($(findstring $(MAKEFLAGS),s),s)
-ifndef V
+ifneq ($(V),1)
 	QUIET_ASCIIDOC	= @echo '   ' ASCIIDOC $@;
 	QUIET_XMLTO	= @echo '   ' XMLTO $@;
 	QUIET_DB2TEXI	= @echo '   ' DB2TEXI $@;
tools/perf/config/utilities.mak +1 -1
index 8ef3bd3..faffb52 100644
@@ -181,7 +181,7 @@ _gea_err  = $(if $(1),$(error Please set '$(1)' appropriately))
 
 # try-cc
 # Usage: option = $(call try-cc, source-to-build, cc-options, msg)
-ifndef V
+ifneq ($(V),1)
 TRY_CC_OUTPUT= > /dev/null 2>&1
 endif
 TRY_CC_MSG=echo "    CHK $(3)" 1>&2;
tools/scripts/Makefile.include +1 -1
index f03e681..0d0506d 100644
@@ -59,7 +59,7 @@ QUIET_SUBDIR0  = +$(MAKE) $(COMMAND_O) -C # space to separate -C and subdir
 QUIET_SUBDIR1  =
 
 ifneq ($(findstring $(MAKEFLAGS),s),s)
-ifndef V
+ifneq ($(V),1)
 	QUIET_CC       = @echo '   ' CC $@;
 	QUIET_AR       = @echo '   ' AR $@;
 	QUIET_LINK     = @echo '   ' LINK $@;