* [Qemu-devel] [6380] Make make output quieter (Avi Kivity) @ 2009-01-21 18:13 Anthony Liguori 2009-01-24 15:10 ` Stuart Brady 0 siblings, 1 reply; 16+ messages in thread From: Anthony Liguori @ 2009-01-21 18:13 UTC (permalink / raw) To: qemu-devel Revision: 6380 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6380 Author: aliguori Date: 2009-01-21 18:13:09 +0000 (Wed, 21 Jan 2009) Log Message: ----------- Make make output quieter (Avi Kivity) Spew out less noise when compiling. This helps review make output for information such as compilation warnings, rather than extra long compiler invocations. The full output can be generated by supplying a 'V=1' parameter to make. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Modified Paths: -------------- trunk/Makefile trunk/rules.mak Modified: trunk/Makefile =================================================================== --- trunk/Makefile 2009-01-21 18:13:02 UTC (rev 6379) +++ trunk/Makefile 2009-01-21 18:13:09 UTC (rev 6380) @@ -39,7 +39,7 @@ SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS)) subdir-%: - $(MAKE) -C $(subst subdir-,,$@) all + $(MAKE) -C $(subst subdir-,,$@) V="$(V)" all $(filter %-softmmu,$(SUBDIR_RULES)): libqemu_common.a $(filter %-user,$(SUBDIR_RULES)): libqemu_user.a Modified: trunk/rules.mak =================================================================== --- trunk/rules.mak 2009-01-21 18:13:02 UTC (rev 6379) +++ trunk/rules.mak 2009-01-21 18:13:09 UTC (rev 6380) @@ -1,14 +1,16 @@ %.o: %.c - $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $< + $(call quiet-command,$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<,CC $@) %.o: %.S - $(CC) $(CPPFLAGS) -c -o $@ $< + $(call quiet-command,$(CC) $(CPPFLAGS) -c -o $@ $<,AS $@) %.o: %.m - $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $< + $(call quiet-command,$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<,OBJC $@) -LINK = $(CC) $(LDFLAGS) -o $@ $^ $(LIBS) +LINK = $(call quiet-command,$(CC) $(LDFLAGS) -o $@ $^ $(LIBS),LINK $@) %$(EXESUF): %.o $(LINK) + +quiet-command = $(if $(V),$1,@echo $2 && $1) ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [Qemu-devel] [6380] Make make output quieter (Avi Kivity) 2009-01-21 18:13 [Qemu-devel] [6380] Make make output quieter (Avi Kivity) Anthony Liguori @ 2009-01-24 15:10 ` Stuart Brady 2009-01-25 15:53 ` [Qemu-devel] [PATCH] build system: Further improve quiet mode (was: Re: [6380] Make make output quieter (Avi Kivity)) Jan Kiszka 0 siblings, 1 reply; 16+ messages in thread From: Stuart Brady @ 2009-01-24 15:10 UTC (permalink / raw) To: qemu-devel On Wed, Jan 21, 2009 at 06:13:09PM +0000, Anthony Liguori wrote: > Spew out less noise when compiling. This helps review make output for > information such as compilation warnings, rather than extra long compiler > invocations. > > The full output can be generated by supplying a 'V=1' parameter to make. Excellent! However, I would find it helpful to see the name of the target that is being built. Something like the following? ... Signed-off-by: Stuart Brady <stuart.brady@gmail.com> Index: rules.mak =================================================================== --- rules.mak (revision 6417) +++ rules.mak (working copy) @@ -1,19 +1,19 @@ %.o: %.c - $(call quiet-command,$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<,CC $@) + $(call quiet-command,$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<,CC $(TARGET_DIR) $@) %.o: %.S - $(call quiet-command,$(CC) $(CPPFLAGS) -c -o $@ $<,AS $@) + $(call quiet-command,$(CC) $(CPPFLAGS) -c -o $@ $<,AS $(TARGET_DIR) $@) %.o: %.m - $(call quiet-command,$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<,OBJC $@) + $(call quiet-command,$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<,OBJC $(TARGET_DIR) $@) -LINK = $(call quiet-command,$(CC) $(LDFLAGS) -o $@ $^ $(LIBS),LINK $@) +LINK = $(call quiet-command,$(CC) $(LDFLAGS) -o $@ $^ $(LIBS),LINK $(TARGET_DIR) $@) %$(EXESUF): %.o $(LINK) %.a: - $(call quiet-command,rm -f $@ && $(AR) rcs $@ $^,AR $@) + $(call quiet-command,rm -f $@ && $(AR) rcs $@ $^,AR $(TARGET_DIR) $@) quiet-command = $(if $(V),$1,@echo $2 && $1) Index: Makefile =================================================================== --- Makefile (revision 6417) +++ Makefile (working copy) @@ -8,6 +8,7 @@ VPATH=$(SRC_PATH):$(SRC_PATH)/hw +TARGET_DIR=common CFLAGS += $(OS_CFLAGS) $(ARCH_CFLAGS) LDFLAGS += $(OS_LDFLAGS) $(ARCH_LDFLAGS) @@ -39,7 +40,7 @@ SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS)) subdir-%: - $(MAKE) -C $(subst subdir-,,$@) V="$(V)" all + $(MAKE) -C $(subst subdir-,,$@) V="$(V)" TARGET_DIR="$*" all $(filter %-softmmu,$(SUBDIR_RULES)): libqemu_common.a $(filter %-user,$(SUBDIR_RULES)): libqemu_user.a Or is there a cleaner way of doing this? (BTW, could the $(subst subdir-,,$@) just be replaced with $*?) Cheers, -- Stuart Brady ^ permalink raw reply [flat|nested] 16+ messages in thread
* [Qemu-devel] [PATCH] build system: Further improve quiet mode (was: Re: [6380] Make make output quieter (Avi Kivity)) 2009-01-24 15:10 ` Stuart Brady @ 2009-01-25 15:53 ` Jan Kiszka 2009-01-25 15:56 ` Laurent Desnogues 2009-01-26 17:08 ` [Qemu-devel] " Anthony Liguori 0 siblings, 2 replies; 16+ messages in thread From: Jan Kiszka @ 2009-01-25 15:53 UTC (permalink / raw) To: qemu-devel Stuart Brady wrote: > On Wed, Jan 21, 2009 at 06:13:09PM +0000, Anthony Liguori wrote: >> Spew out less noise when compiling. This helps review make output for >> information such as compilation warnings, rather than extra long compiler >> invocations. >> >> The full output can be generated by supplying a 'V=1' parameter to make. > > Excellent! > > However, I would find it helpful to see the name of the target that is > being built. Something like the following? ... Good idea! I rebased your work over recent changes and adopted it a bit, see below. Hope you still like it. :) [...] > @@ -39,7 +40,7 @@ > SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS)) > > subdir-%: > - $(MAKE) -C $(subst subdir-,,$@) V="$(V)" all > + $(MAKE) -C $(subst subdir-,,$@) V="$(V)" TARGET_DIR="$*" all > > $(filter %-softmmu,$(SUBDIR_RULES)): libqemu_common.a > $(filter %-user,$(SUBDIR_RULES)): libqemu_user.a > > Or is there a cleaner way of doing this? > > (BTW, could the $(subst subdir-,,$@) just be replaced with $*?) I'm no makefile guru, but from all I read this is true. So I included that cleanup as well. Jan ----------> Derived from Stuart Brady's patch: Show the target directory as prefix to the current module when building in quiet mode. This helps to gain overview of the current build progress, specifically when running parallelized builds. Furthermore, suppress make command echoing when entering subdirs and replace $(subst subdir-,,$@) with $* in the related rule. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> --- Makefile | 2 +- rules.mak | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index a09d6e0..4f7a55a 100644 --- a/Makefile +++ b/Makefile @@ -39,7 +39,7 @@ all: $(TOOLS) $(DOCS) recurse-all SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS)) subdir-%: - $(MAKE) -C $(subst subdir-,,$@) V="$(V)" all + $(call quiet-command,$(MAKE) -C $* V="$(V)" TARGET_DIR="$*/" all,) $(filter %-softmmu,$(SUBDIR_RULES)): libqemu_common.a $(filter %-user,$(SUBDIR_RULES)): libqemu_user.a diff --git a/rules.mak b/rules.mak index c4bb65b..a75a93b 100644 --- a/rules.mak +++ b/rules.mak @@ -1,19 +1,19 @@ %.o: %.c - $(call quiet-command,$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<," CC $@") + $(call quiet-command,$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<," CC $(TARGET_DIR)$@") %.o: %.S - $(call quiet-command,$(CC) $(CPPFLAGS) -c -o $@ $<," AS $@") + $(call quiet-command,$(CC) $(CPPFLAGS) -c -o $@ $<," AS $(TARGET_DIR)$@") %.o: %.m - $(call quiet-command,$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<," OBJC $@") + $(call quiet-command,$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<," OBJC $(TARGET_DIR)$@") -LINK = $(call quiet-command,$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)," LINK $@") +LINK = $(call quiet-command,$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)," LINK $(TARGET_DIR)$@") %$(EXESUF): %.o $(LINK) %.a: - $(call quiet-command,rm -f $@ && $(AR) rcs $@ $^," AR $@") + $(call quiet-command,rm -f $@ && $(AR) rcs $@ $^," AR $(TARGET_DIR)$@") -quiet-command = $(if $(V),$1,@echo $2 && $1) +quiet-command = $(if $(V),$1,$(if $(2),@echo $2 && $1, @$1)) ^ permalink raw reply related [flat|nested] 16+ messages in thread
* Re: [Qemu-devel] [PATCH] build system: Further improve quiet mode (was: Re: [6380] Make make output quieter (Avi Kivity)) 2009-01-25 15:53 ` [Qemu-devel] [PATCH] build system: Further improve quiet mode (was: Re: [6380] Make make output quieter (Avi Kivity)) Jan Kiszka @ 2009-01-25 15:56 ` Laurent Desnogues 2009-01-25 16:30 ` [Qemu-devel] Re: [PATCH] build system: Further improve quiet mode Jan Kiszka 2009-01-26 17:08 ` [Qemu-devel] " Anthony Liguori 1 sibling, 1 reply; 16+ messages in thread From: Laurent Desnogues @ 2009-01-25 15:56 UTC (permalink / raw) To: qemu-devel On Sun, Jan 25, 2009 at 4:53 PM, Jan Kiszka <jan.kiszka@web.de> wrote: > Stuart Brady wrote: >> On Wed, Jan 21, 2009 at 06:13:09PM +0000, Anthony Liguori wrote: >>> Spew out less noise when compiling. This helps review make output for >>> information such as compilation warnings, rather than extra long compiler >>> invocations. >>> >>> The full output can be generated by supplying a 'V=1' parameter to make. >> >> Excellent! >> >> However, I would find it helpful to see the name of the target that is >> being built. Something like the following? ... > > Good idea! I rebased your work over recent changes and adopted it a bit, > see below. Hope you still like it. :) While you're at it, would it be possible to dump C flags once at the beginning to see how things get compiled? :-) Laurent ^ permalink raw reply [flat|nested] 16+ messages in thread
* [Qemu-devel] Re: [PATCH] build system: Further improve quiet mode 2009-01-25 15:56 ` Laurent Desnogues @ 2009-01-25 16:30 ` Jan Kiszka 2009-01-25 16:39 ` Laurent Desnogues 2009-01-26 17:36 ` Anthony Liguori 0 siblings, 2 replies; 16+ messages in thread From: Jan Kiszka @ 2009-01-25 16:30 UTC (permalink / raw) To: qemu-devel Laurent Desnogues wrote: > On Sun, Jan 25, 2009 at 4:53 PM, Jan Kiszka <jan.kiszka@web.de> wrote: >> Stuart Brady wrote: >>> On Wed, Jan 21, 2009 at 06:13:09PM +0000, Anthony Liguori wrote: >>>> Spew out less noise when compiling. This helps review make output for >>>> information such as compilation warnings, rather than extra long compiler >>>> invocations. >>>> >>>> The full output can be generated by supplying a 'V=1' parameter to make. >>> Excellent! >>> >>> However, I would find it helpful to see the name of the target that is >>> being built. Something like the following? ... >> Good idea! I rebased your work over recent changes and adopted it a bit, >> see below. Hope you still like it. :) > > While you're at it, would it be possible to dump C flags once at the beginning > to see how things get compiled? :-) > Something like this? I also included LDFLAGS - before someone asks... ------> Derived from Stuart Brady's patch: Show the target directory as prefix to the current module when building in quiet mode. This helps to gain overview of the current build progress, specifically when running parallelized builds. Furthermore, suppress make command echoing when entering subdirs and replace $(subst subdir-,,$@) with $* in the related rule. And on request by Laurent Desnogues, dump the used CFLAGS and LDFLAGS once on startup of the quiet mode. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> --- Makefile | 7 +++++-- rules.mak | 12 ++++++------ 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index a09d6e0..6a7db93 100644 --- a/Makefile +++ b/Makefile @@ -34,12 +34,15 @@ ifdef CONFIG_WIN32 LIBS+=-lwinmm -lws2_32 -liphlpapi endif -all: $(TOOLS) $(DOCS) recurse-all +all: + $(call quiet-command,$(MAKE) build-all,"Building with\n CFLAGS = $(CFLAGS)\n LDFLAGS = $(LDFLAGS)") + +build-all: $(TOOLS) $(DOCS) recurse-all SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS)) subdir-%: - $(MAKE) -C $(subst subdir-,,$@) V="$(V)" all + $(call quiet-command,$(MAKE) -C $* V="$(V)" TARGET_DIR="$*/" all,) $(filter %-softmmu,$(SUBDIR_RULES)): libqemu_common.a $(filter %-user,$(SUBDIR_RULES)): libqemu_user.a diff --git a/rules.mak b/rules.mak index c4bb65b..10e21ec 100644 --- a/rules.mak +++ b/rules.mak @@ -1,19 +1,19 @@ %.o: %.c - $(call quiet-command,$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<," CC $@") + $(call quiet-command,$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<," CC $(TARGET_DIR)$@") %.o: %.S - $(call quiet-command,$(CC) $(CPPFLAGS) -c -o $@ $<," AS $@") + $(call quiet-command,$(CC) $(CPPFLAGS) -c -o $@ $<," AS $(TARGET_DIR)$@") %.o: %.m - $(call quiet-command,$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<," OBJC $@") + $(call quiet-command,$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<," OBJC $(TARGET_DIR)$@") -LINK = $(call quiet-command,$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)," LINK $@") +LINK = $(call quiet-command,$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)," LINK $(TARGET_DIR)$@") %$(EXESUF): %.o $(LINK) %.a: - $(call quiet-command,rm -f $@ && $(AR) rcs $@ $^," AR $@") + $(call quiet-command,rm -f $@ && $(AR) rcs $@ $^," AR $(TARGET_DIR)$@") -quiet-command = $(if $(V),$1,@echo $2 && $1) +quiet-command = $(if $(V),$1,$(if $(2),@echo -e $2 && $1, @$1)) ^ permalink raw reply related [flat|nested] 16+ messages in thread
* Re: [Qemu-devel] Re: [PATCH] build system: Further improve quiet mode 2009-01-25 16:30 ` [Qemu-devel] Re: [PATCH] build system: Further improve quiet mode Jan Kiszka @ 2009-01-25 16:39 ` Laurent Desnogues 2009-01-26 17:36 ` Anthony Liguori 1 sibling, 0 replies; 16+ messages in thread From: Laurent Desnogues @ 2009-01-25 16:39 UTC (permalink / raw) To: qemu-devel On Sun, Jan 25, 2009 at 5:30 PM, Jan Kiszka <jan.kiszka@web.de> wrote: > Something like this? I also included LDFLAGS - before someone asks... Exactly :-) Thanks! Laurent ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [Qemu-devel] Re: [PATCH] build system: Further improve quiet mode 2009-01-25 16:30 ` [Qemu-devel] Re: [PATCH] build system: Further improve quiet mode Jan Kiszka 2009-01-25 16:39 ` Laurent Desnogues @ 2009-01-26 17:36 ` Anthony Liguori 2009-01-26 18:58 ` Lionel Landwerlin ` (2 more replies) 1 sibling, 3 replies; 16+ messages in thread From: Anthony Liguori @ 2009-01-26 17:36 UTC (permalink / raw) To: qemu-devel Jan Kiszka wrote: > Laurent Desnogues wrote: > >> On Sun, Jan 25, 2009 at 4:53 PM, Jan Kiszka <jan.kiszka@web.de> wrote: >> >>> Stuart Brady wrote: >>> >>>> On Wed, Jan 21, 2009 at 06:13:09PM +0000, Anthony Liguori wrote: >>>> >>>>> Spew out less noise when compiling. This helps review make output for >>>>> information such as compilation warnings, rather than extra long compiler >>>>> invocations. >>>>> >>>>> The full output can be generated by supplying a 'V=1' parameter to make. >>>>> >>>> Excellent! >>>> >>>> However, I would find it helpful to see the name of the target that is >>>> being built. Something like the following? ... >>>> >>> Good idea! I rebased your work over recent changes and adopted it a bit, >>> see below. Hope you still like it. :) >>> >> While you're at it, would it be possible to dump C flags once at the beginning >> to see how things get compiled? :-) >> >> > > Something like this? I also included LDFLAGS - before someone asks... > > ------> > > Derived from Stuart Brady's patch: Show the target directory as prefix > to the current module when building in quiet mode. This helps to gain > overview of the current build progress, specifically when running > parallelized builds. > > Furthermore, suppress make command echoing when entering subdirs and > replace $(subst subdir-,,$@) with $* in the related rule. And on request > by Laurent Desnogues, dump the used CFLAGS and LDFLAGS once on startup > of the quiet mode. > > Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> > I applied the first rev of this patch because I had queued that one up. I usually check to see if there are newer versions before applying a patch but since you included it in a response in the thread, I missed it. Can you extract the CFLAGS part of this and resubmit. BTW, what do people think of printing CFLAGS? I find it not all that exciting but if people like it, I'm happy to go with it. Regards, Anthony Liguori > --- > > Makefile | 7 +++++-- > rules.mak | 12 ++++++------ > 2 files changed, 11 insertions(+), 8 deletions(-) > > diff --git a/Makefile b/Makefile > index a09d6e0..6a7db93 100644 > --- a/Makefile > +++ b/Makefile > @@ -34,12 +34,15 @@ ifdef CONFIG_WIN32 > LIBS+=-lwinmm -lws2_32 -liphlpapi > endif > > -all: $(TOOLS) $(DOCS) recurse-all > +all: > + $(call quiet-command,$(MAKE) build-all,"Building with\n CFLAGS = $(CFLAGS)\n LDFLAGS = $(LDFLAGS)") > + > +build-all: $(TOOLS) $(DOCS) recurse-all > > SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS)) > > subdir-%: > - $(MAKE) -C $(subst subdir-,,$@) V="$(V)" all > + $(call quiet-command,$(MAKE) -C $* V="$(V)" TARGET_DIR="$*/" all,) > > $(filter %-softmmu,$(SUBDIR_RULES)): libqemu_common.a > $(filter %-user,$(SUBDIR_RULES)): libqemu_user.a > diff --git a/rules.mak b/rules.mak > index c4bb65b..10e21ec 100644 > --- a/rules.mak > +++ b/rules.mak > @@ -1,19 +1,19 @@ > > %.o: %.c > - $(call quiet-command,$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<," CC $@") > + $(call quiet-command,$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<," CC $(TARGET_DIR)$@") > > %.o: %.S > - $(call quiet-command,$(CC) $(CPPFLAGS) -c -o $@ $<," AS $@") > + $(call quiet-command,$(CC) $(CPPFLAGS) -c -o $@ $<," AS $(TARGET_DIR)$@") > > %.o: %.m > - $(call quiet-command,$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<," OBJC $@") > + $(call quiet-command,$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<," OBJC $(TARGET_DIR)$@") > > -LINK = $(call quiet-command,$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)," LINK $@") > +LINK = $(call quiet-command,$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)," LINK $(TARGET_DIR)$@") > > %$(EXESUF): %.o > $(LINK) > > %.a: > - $(call quiet-command,rm -f $@ && $(AR) rcs $@ $^," AR $@") > + $(call quiet-command,rm -f $@ && $(AR) rcs $@ $^," AR $(TARGET_DIR)$@") > > -quiet-command = $(if $(V),$1,@echo $2 && $1) > +quiet-command = $(if $(V),$1,$(if $(2),@echo -e $2 && $1, @$1)) > > > ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [Qemu-devel] Re: [PATCH] build system: Further improve quiet mode 2009-01-26 17:36 ` Anthony Liguori @ 2009-01-26 18:58 ` Lionel Landwerlin 2009-01-26 18:58 ` Paul Brook 2009-01-26 19:04 ` Laurent Desnogues 2 siblings, 0 replies; 16+ messages in thread From: Lionel Landwerlin @ 2009-01-26 18:58 UTC (permalink / raw) To: qemu-devel Le lundi 26 janvier 2009 à 11:36 -0600, Anthony Liguori a écrit : > Jan Kiszka wrote: > > Can you extract the CFLAGS part of this and resubmit. > > BTW, what do people think of printing CFLAGS? I find it not all that > exciting but if people like it, I'm happy to go with it. > > Regards, > > Anthony Liguori > Good idea, Usually C/LDFLAGS variables are printed at the end of the configure script. Regards, -- Lione Landwerlin O p e n W i d e 14, rue Gaillon 75002 Paris ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [Qemu-devel] Re: [PATCH] build system: Further improve quiet mode 2009-01-26 17:36 ` Anthony Liguori 2009-01-26 18:58 ` Lionel Landwerlin @ 2009-01-26 18:58 ` Paul Brook 2009-01-26 19:41 ` Anthony Liguori 2009-01-26 19:04 ` Laurent Desnogues 2 siblings, 1 reply; 16+ messages in thread From: Paul Brook @ 2009-01-26 18:58 UTC (permalink / raw) To: qemu-devel > BTW, what do people think of printing CFLAGS? I find it not all that > exciting but if people like it, I'm happy to go with it. I don't find it that interesting either. Especially given we use at least two different sets of CFLAGS, and you really also need to know which compiler is being invoked. You can always use V=1. Paul ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [Qemu-devel] Re: [PATCH] build system: Further improve quiet mode 2009-01-26 18:58 ` Paul Brook @ 2009-01-26 19:41 ` Anthony Liguori 2009-01-27 9:23 ` Laurent Desnogues 0 siblings, 1 reply; 16+ messages in thread From: Anthony Liguori @ 2009-01-26 19:41 UTC (permalink / raw) To: Paul Brook; +Cc: qemu-devel Paul Brook wrote: >> BTW, what do people think of printing CFLAGS? I find it not all that >> exciting but if people like it, I'm happy to go with it. >> > > I don't find it that interesting either. Especially given we use at least two > different sets of CFLAGS, and you really also need to know which compiler is > being invoked. You can always use V=1. > That was my thinking too. The more noise in the build output, the less useful the quiet mode is wrt catching warnings. Regards, Anthony Liguori > Paul > ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [Qemu-devel] Re: [PATCH] build system: Further improve quiet mode 2009-01-26 19:41 ` Anthony Liguori @ 2009-01-27 9:23 ` Laurent Desnogues 2009-01-27 9:47 ` Jan Kiszka 0 siblings, 1 reply; 16+ messages in thread From: Laurent Desnogues @ 2009-01-27 9:23 UTC (permalink / raw) To: qemu-devel [-- Attachment #1: Type: text/plain, Size: 714 bytes --] On Mon, Jan 26, 2009 at 8:41 PM, Anthony Liguori <anthony@codemonkey.ws> wrote: > Paul Brook wrote: >>> >>> BTW, what do people think of printing CFLAGS? I find it not all that >>> exciting but if people like it, I'm happy to go with it. >>> >> >> I don't find it that interesting either. Especially given we use at least >> two different sets of CFLAGS, and you really also need to know which >> compiler is being invoked. You can always use V=1. >> > > That was my thinking too. The more noise in the build output, the less > useful the quiet mode is wrt catching warnings. So what about this? Laurent - Make user-mode build process quieter. Signed-off-by: Laurent Desnogues <laurent.desnogues@gmail.com> [-- Attachment #2: silence-UM.patch --] [-- Type: text/x-patch, Size: 457 bytes --] Index: Makefile.target =================================================================== --- Makefile.target (revision 6463) +++ Makefile.target (working copy) @@ -725,9 +725,9 @@ endif # !CONFIG_USER_ONLY gdbstub-xml.c: $(TARGET_XML_FILES) feature_to_c.sh - rm -f $@ + $(call quiet-command,rm -f $@) ifeq ($(TARGET_XML_FILES),) - echo > $@ + $(call quiet-command,echo > $@) else $(SHELL) $(SRC_PATH)/feature_to_c.sh $@ $(TARGET_XML_FILES) endif ^ permalink raw reply [flat|nested] 16+ messages in thread
* [Qemu-devel] Re: [PATCH] build system: Further improve quiet mode 2009-01-27 9:23 ` Laurent Desnogues @ 2009-01-27 9:47 ` Jan Kiszka 2009-01-27 9:49 ` Jan Kiszka 0 siblings, 1 reply; 16+ messages in thread From: Jan Kiszka @ 2009-01-27 9:47 UTC (permalink / raw) To: qemu-devel Laurent Desnogues wrote: > On Mon, Jan 26, 2009 at 8:41 PM, Anthony Liguori <anthony@codemonkey.ws> wrote: >> Paul Brook wrote: >>>> BTW, what do people think of printing CFLAGS? I find it not all that >>>> exciting but if people like it, I'm happy to go with it. >>>> >>> I don't find it that interesting either. Especially given we use at least >>> two different sets of CFLAGS, and you really also need to know which >>> compiler is being invoked. You can always use V=1. >>> >> That was my thinking too. The more noise in the build output, the less >> useful the quiet mode is wrt catching warnings. > > So what about this? > > > Laurent > > - Make user-mode build process quieter. > > Signed-off-by: Laurent Desnogues <laurent.desnogues@gmail.com> > > Index: Makefile.target > =================================================================== > --- Makefile.target (revision 6463) > +++ Makefile.target (working copy) > @@ -725,9 +725,9 @@ > endif # !CONFIG_USER_ONLY > > gdbstub-xml.c: $(TARGET_XML_FILES) feature_to_c.sh > - rm -f $@ > + $(call quiet-command,rm -f $@) > ifeq ($(TARGET_XML_FILES),) > - echo > $@ > + $(call quiet-command,echo > $@) > else > $(SHELL) $(SRC_PATH)/feature_to_c.sh $@ $(TARGET_XML_FILES) > endif I was thinking in this direction already as well. But please go for a canonical output, something like GENERATE ppc-softmmu/gdbstub-xml.c (Likely requires adjusting indention of the other rules.) Jan -- Siemens AG, Corporate Technology, CT SE 2 Corporate Competence Center Embedded Linux ^ permalink raw reply [flat|nested] 16+ messages in thread
* [Qemu-devel] Re: [PATCH] build system: Further improve quiet mode 2009-01-27 9:47 ` Jan Kiszka @ 2009-01-27 9:49 ` Jan Kiszka 0 siblings, 0 replies; 16+ messages in thread From: Jan Kiszka @ 2009-01-27 9:49 UTC (permalink / raw) To: qemu-devel Jan Kiszka wrote: > Laurent Desnogues wrote: >> On Mon, Jan 26, 2009 at 8:41 PM, Anthony Liguori <anthony@codemonkey.ws> wrote: >>> Paul Brook wrote: >>>>> BTW, what do people think of printing CFLAGS? I find it not all that >>>>> exciting but if people like it, I'm happy to go with it. >>>>> >>>> I don't find it that interesting either. Especially given we use at least >>>> two different sets of CFLAGS, and you really also need to know which >>>> compiler is being invoked. You can always use V=1. >>>> >>> That was my thinking too. The more noise in the build output, the less >>> useful the quiet mode is wrt catching warnings. >> So what about this? >> >> >> Laurent >> >> - Make user-mode build process quieter. >> >> Signed-off-by: Laurent Desnogues <laurent.desnogues@gmail.com> >> >> Index: Makefile.target >> =================================================================== >> --- Makefile.target (revision 6463) >> +++ Makefile.target (working copy) >> @@ -725,9 +725,9 @@ >> endif # !CONFIG_USER_ONLY >> >> gdbstub-xml.c: $(TARGET_XML_FILES) feature_to_c.sh >> - rm -f $@ >> + $(call quiet-command,rm -f $@) >> ifeq ($(TARGET_XML_FILES),) >> - echo > $@ >> + $(call quiet-command,echo > $@) >> else >> $(SHELL) $(SRC_PATH)/feature_to_c.sh $@ $(TARGET_XML_FILES) >> endif > > I was thinking in this direction already as well. But please go for a > canonical output, something like > > GENERATE ppc-softmmu/gdbstub-xml.c > > (Likely requires adjusting indention of the other rules.) Or simply use GEN ppc-softmmu/gdbstub-xml.c which fits into the existing layout. Jan -- Siemens AG, Corporate Technology, CT SE 2 Corporate Competence Center Embedded Linux ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [Qemu-devel] Re: [PATCH] build system: Further improve quiet mode 2009-01-26 17:36 ` Anthony Liguori 2009-01-26 18:58 ` Lionel Landwerlin 2009-01-26 18:58 ` Paul Brook @ 2009-01-26 19:04 ` Laurent Desnogues 2 siblings, 0 replies; 16+ messages in thread From: Laurent Desnogues @ 2009-01-26 19:04 UTC (permalink / raw) To: qemu-devel On Mon, Jan 26, 2009 at 6:36 PM, Anthony Liguori <anthony@codemonkey.ws> wrote: > > BTW, what do people think of printing CFLAGS? I find it not all that > exciting but if people like it, I'm happy to go with it. I'm obviously interested since I asked for it :-) I often play with -O flag when I check every target still builds and sometimes I forget to set it back to -O2 while I need to run the thing. Having it dumped early in the build helps me catch when it's wrong as I always look at the first compilation lines before switching to something else. Of course it's just a nice-to-have for me, nothing that matters that much. Laurent ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [Qemu-devel] [PATCH] build system: Further improve quiet mode 2009-01-25 15:53 ` [Qemu-devel] [PATCH] build system: Further improve quiet mode (was: Re: [6380] Make make output quieter (Avi Kivity)) Jan Kiszka 2009-01-25 15:56 ` Laurent Desnogues @ 2009-01-26 17:08 ` Anthony Liguori 2009-01-26 18:08 ` [Qemu-devel] " Jan Kiszka 1 sibling, 1 reply; 16+ messages in thread From: Anthony Liguori @ 2009-01-26 17:08 UTC (permalink / raw) To: qemu-devel > Derived from Stuart Brady's patch: Show the target directory as prefix > to the current module when building in quiet mode. This helps to gain > overview of the current build progress, specifically when running > parallelized builds. > > Furthermore, suppress make command echoing when entering subdirs and > replace $(subst subdir-,,$@) with $* in the related rule. > > Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Applied. Thanks. The output really does look better. Regards, Anthony Liguori ^ permalink raw reply [flat|nested] 16+ messages in thread
* [Qemu-devel] Re: [PATCH] build system: Further improve quiet mode 2009-01-26 17:08 ` [Qemu-devel] " Anthony Liguori @ 2009-01-26 18:08 ` Jan Kiszka 0 siblings, 0 replies; 16+ messages in thread From: Jan Kiszka @ 2009-01-26 18:08 UTC (permalink / raw) To: qemu-devel Anthony Liguori wrote: > >> Derived from Stuart Brady's patch: Show the target directory as prefix >> to the current module when building in quiet mode. This helps to gain >> overview of the current build progress, specifically when running >> parallelized builds. >> >> Furthermore, suppress make command echoing when entering subdirs and >> replace $(subst subdir-,,$@) with $* in the related rule. >> >> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> > Applied. Thanks. > > The output really does look better. > Accidentally missed -v2? If yes, here is the delta: ------> Add-on to the previous patch: On request by Laurent Desnogues dump the used CFLAGS and LDFLAGS once on startup of the quiet mode. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> --- Makefile | 5 ++++- rules.mak | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4f7a55a..6a7db93 100644 --- a/Makefile +++ b/Makefile @@ -34,7 +34,10 @@ ifdef CONFIG_WIN32 LIBS+=-lwinmm -lws2_32 -liphlpapi endif -all: $(TOOLS) $(DOCS) recurse-all +all: + $(call quiet-command,$(MAKE) build-all,"Building with\n CFLAGS = $(CFLAGS)\n LDFLAGS = $(LDFLAGS)") + +build-all: $(TOOLS) $(DOCS) recurse-all SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS)) diff --git a/rules.mak b/rules.mak index a75a93b..10e21ec 100644 --- a/rules.mak +++ b/rules.mak @@ -16,4 +16,4 @@ LINK = $(call quiet-command,$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)," LINK $(TARGET_ %.a: $(call quiet-command,rm -f $@ && $(AR) rcs $@ $^," AR $(TARGET_DIR)$@") -quiet-command = $(if $(V),$1,$(if $(2),@echo $2 && $1, @$1)) +quiet-command = $(if $(V),$1,$(if $(2),@echo -e $2 && $1, @$1)) ^ permalink raw reply related [flat|nested] 16+ messages in thread
end of thread, other threads:[~2009-01-27 9:49 UTC | newest] Thread overview: 16+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2009-01-21 18:13 [Qemu-devel] [6380] Make make output quieter (Avi Kivity) Anthony Liguori 2009-01-24 15:10 ` Stuart Brady 2009-01-25 15:53 ` [Qemu-devel] [PATCH] build system: Further improve quiet mode (was: Re: [6380] Make make output quieter (Avi Kivity)) Jan Kiszka 2009-01-25 15:56 ` Laurent Desnogues 2009-01-25 16:30 ` [Qemu-devel] Re: [PATCH] build system: Further improve quiet mode Jan Kiszka 2009-01-25 16:39 ` Laurent Desnogues 2009-01-26 17:36 ` Anthony Liguori 2009-01-26 18:58 ` Lionel Landwerlin 2009-01-26 18:58 ` Paul Brook 2009-01-26 19:41 ` Anthony Liguori 2009-01-27 9:23 ` Laurent Desnogues 2009-01-27 9:47 ` Jan Kiszka 2009-01-27 9:49 ` Jan Kiszka 2009-01-26 19:04 ` Laurent Desnogues 2009-01-26 17:08 ` [Qemu-devel] " Anthony Liguori 2009-01-26 18:08 ` [Qemu-devel] " Jan Kiszka
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).