From: Andre Przywara <andre.przywara@arm.com>
To: Will Deacon <will.deacon@arm.com>
Cc: kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org
Subject: [PATCH v2 2/4] Makefile: support -s switch
Date: Fri, 1 Feb 2019 12:37:14 +0000 [thread overview]
Message-ID: <20190201123716.92901-3-andre.przywara@arm.com> (raw)
In-Reply-To: <20190201123716.92901-1-andre.przywara@arm.com>
"make -s" suppresses normal output, just shows warnings and errors.
But since we explicitly override the make output with our fancy concise
version, we miss out on this feature.
Do as the kernel does and explicitly suppress every normal output when -s
is given. This helps to spot warnings that scroll out of the terminal
window too quickly.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
---
Makefile | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index c4faff66..ec75cd99 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,11 @@
#
ifeq ($(strip $(V)),)
- E = @echo
+ ifeq ($(findstring s,$(filter-out --%,$(MAKEFLAGS))),)
+ E = @echo
+ else
+ E = @\#
+ endif
Q = @
else
E = @\#
--
2.17.1
next prev parent reply other threads:[~2019-02-01 12:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-01 12:37 [PATCH v2 0/4] Various convenience fixes Andre Przywara
2019-02-01 12:37 ` [PATCH v2 1/4] arm: fdt: add stdout-path to /chosen node Andre Przywara
2019-02-01 12:37 ` Andre Przywara [this message]
2019-02-01 12:37 ` [PATCH v2 3/4] Makefile: Remove echoing of kvmtools version file Andre Przywara
2019-02-01 12:37 ` [PATCH v2 4/4] arm: Auto-detect guest GIC type Andre Przywara
2019-02-08 16:10 ` Will Deacon
2019-02-08 16:16 ` [PATCH v2 0/4] Various convenience fixes Will Deacon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190201123716.92901-3-andre.przywara@arm.com \
--to=andre.przywara@arm.com \
--cc=kvm@vger.kernel.org \
--cc=kvmarm@lists.cs.columbia.edu \
--cc=will.deacon@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox