From: Fam Zheng <famz@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: peter.maydell@linaro.org, "Michael S. Tsirkin" <mst@redhat.com>,
"Michael Tokarev" <mjt@tls.msk.ru>,
qemu-devel@nongnu.org, blauwirbel@gmail.com,
"Stefan Hajnoczi" <stefanha@redhat.com>,
"Lluís Vilanova" <vilanova@ac.upc.edu>
Subject: Re: [Qemu-devel] [PATCH 1/2] Makefile: don't silence mak file test with V=1
Date: Sat, 28 Feb 2015 08:57:15 +0800 [thread overview]
Message-ID: <20150228005715.GA30630@ad.nay.redhat.com> (raw)
In-Reply-To: <54F0BA1A.5080509@redhat.com>
On Fri, 02/27 19:40, Paolo Bonzini wrote:
>
>
> On 19/02/2015 08:48, Michael S. Tsirkin wrote:
> > V=1 should show what's going on, it's not nice
> > to silence things unconditionally.
> >
> > Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> > ---
> > Makefile | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/Makefile b/Makefile
> > index 6817c6f..84ca8be 100644
> > --- a/Makefile
> > +++ b/Makefile
> > @@ -110,7 +110,7 @@ endif
> >
> > %/config-devices.mak: default-configs/%.mak
> > $(call quiet-command,$(SHELL) $(SRC_PATH)/scripts/make_device_config.sh $@ $<, " GEN $@")
> > - @if test -f $@; then \
> > + $(call quiet-command, if test -f $@; then \
> > if cmp -s $@.old $@; then \
> > mv $@.tmp $@; \
> > cp -p $@ $@.old; \
> > @@ -126,7 +126,7 @@ endif
> > else \
> > mv $@.tmp $@; \
> > cp -p $@ $@.old; \
> > - fi
> > + fi, " TEST $@");
> >
> > defconfig:
> > rm -f config-all-devices.mak $(SUBDIR_DEVICES_MAK)
> >
>
> Squashing this to make the non-verbose messages clearer, ok?
>
> diff --git a/Makefile b/Makefile
> index 5604209..d92d4cd 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -109,7 +109,7 @@ endif
> -include $(SUBDIR_DEVICES_MAK_DEP)
>
> %/config-devices.mak: default-configs/%.mak
> - $(call quiet-command,$(SHELL) $(SRC_PATH)/scripts/make_device_config.sh $@ $<, " GEN $@")
> + $(call quiet-command,$(SHELL) $(SRC_PATH)/scripts/make_device_config.sh $@.tmp $<, " GEN $@.tmp")
> $(call quiet-command, if test -f $@; then \
> if cmp -s $@.old $@; then \
> mv $@.tmp $@; \
> @@ -126,7 +126,7 @@ endif
> else \
> mv $@.tmp $@; \
> cp -p $@ $@.old; \
> - fi, " TEST $@");
> + fi, " GEN $@");
>
> defconfig:
> rm -f config-all-devices.mak $(SUBDIR_DEVICES_MAK)
> diff --git a/scripts/make_device_config.sh b/scripts/make_device_config.sh
> index 7242707..7958086 100644
> --- a/scripts/make_device_config.sh
> +++ b/scripts/make_device_config.sh
> @@ -2,7 +2,7 @@
> # Construct a target device config file from a default, pulling in any
> # files from include directives.
>
> -dest=$1.tmp
> +dest=$1
> dep=`dirname $1`-`basename $1`.d
> src=$2
> src_dir=`dirname $src`
Looks good to me.
Fam
next prev parent reply other threads:[~2015-02-28 0:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-19 7:48 [Qemu-devel] [PATCH 1/2] Makefile: don't silence mak file test with V=1 Michael S. Tsirkin
2015-02-19 7:48 ` [Qemu-devel] [PATCH 2/2] Makefile.target: binary depends on config-devices Michael S. Tsirkin
2015-02-25 6:35 ` Fam Zheng
2015-02-27 18:41 ` Paolo Bonzini
2015-02-25 6:34 ` [Qemu-devel] [PATCH 1/2] Makefile: don't silence mak file test with V=1 Fam Zheng
2015-02-27 18:40 ` Paolo Bonzini
2015-02-28 0:57 ` Fam Zheng [this message]
2015-03-02 15:52 ` Eric Blake
2015-03-02 16:22 ` Paolo Bonzini
2015-02-28 18:50 ` Michael S. Tsirkin
2015-03-11 17:24 ` Peter Maydell
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=20150228005715.GA30630@ad.nay.redhat.com \
--to=famz@redhat.com \
--cc=blauwirbel@gmail.com \
--cc=mjt@tls.msk.ru \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
--cc=vilanova@ac.upc.edu \
/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;
as well as URLs for NNTP newsgroup(s).