Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Kacmw-0007Bu-I2 for mharc-grub-devel@gnu.org; Tue, 02 Sep 2008 16:47:46 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kacmv-0007Bp-1i for grub-devel@gnu.org; Tue, 02 Sep 2008 16:47:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kacmt-0007Bd-Hs for grub-devel@gnu.org; Tue, 02 Sep 2008 16:47:44 -0400 Received: from [199.232.76.173] (port=46810 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kacmt-0007Ba-Bi for grub-devel@gnu.org; Tue, 02 Sep 2008 16:47:43 -0400 Received: from gateway09.websitewelcome.com ([64.5.52.12]:58631) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Kacms-0004Uj-RM for grub-devel@gnu.org; Tue, 02 Sep 2008 16:47:43 -0400 Received: (qmail 29789 invoked from network); 2 Sep 2008 20:55:28 -0000 Received: from gator297.hostgator.com (74.53.228.114) by gateway09.websitewelcome.com with SMTP; 2 Sep 2008 20:55:28 -0000 Received: from spk.venturedesignservices.com ([65.61.115.34]:12487 helo=localhost) by gator297.hostgator.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1Kacmi-00018t-DL for grub-devel@gnu.org; Tue, 02 Sep 2008 15:47:32 -0500 Date: Tue, 2 Sep 2008 13:47:32 -0700 From: Colin D Bennett To: grub-devel@gnu.org Message-ID: <20080902134732.1f1a0f04@gibibit.com> In-Reply-To: <48BD977A.5090305@nic.fi> References: <1220373834.6359.42.camel@fz.local> <1220375405.6359.45.camel@fz.local> <20080902192740.GD9070@thorin> <48BD977A.5090305@nic.fi> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator297.hostgator.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - gibibit.com X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Subject: Re: [RFC] make output of compiling a bit less verbose to make warnings more visible X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Sep 2008 20:47:45 -0000 On Tue, 02 Sep 2008 22:43:54 +0300 Vesa J=C3=A4=C3=A4skel=C3=A4inen wrote: > Robert Millan wrote: > > On Tue, Sep 02, 2008 at 07:10:05PM +0200, Felix Zielcke wrote: > >> Am Dienstag, den 02.09.2008, 18:43 +0200 schrieb Felix Zielcke: > >>> Hello, > >>> > >>> I think it would be good if the output from compiling wouldn't be > >>> that verbose. > >> Urm thanks again to Vesa who remembered that Colin brought that > >> topic originally up here. > >> > >> http://lists.gnu.org/archive/html/grub-devel/2008-06/msg00248.html > >> > >> I really would love to have this somehow commited :) > >=20 > > I don't remember that discussion well; ISTR I complained. Maybe > > that stopped it? Anyway, as long as it's user-selectable it's not > > a problem for me. Maybe I even end up using it ;-) >=20 > I think the strength was that you could provide V=3D99 (or something > like that to give previous behavior ("debug feature"). In my 'pretty make' patch, setting V=3D1 (verbose on) restores original full command output. > So basically that is completed. >=20 > Only thing perhaps would need attention is to show that now we compile > for HOST CC and now for TARGET CC or so. Also, it was suggested that new variables (like CC, STRIP, etc.) be introduced an instead of overriding the existing variables, which my patch currently does as follows (this is 90% of the patch functionality): ### Pretty output control ### # Set up compiler and linker commands that either is quiet (does not print # the command line being executed) or verbose (print the command line).=20 _CC :=3D $(CC) _TARGET_CC :=3D $(TARGET_CC) _STRIP :=3D $(STRIP) _GENMODSRC :=3D sh $(srcdir)/genmodsrc.sh ifeq ($(V),1) override V_PREFIX :=3D override CC =3D $(_CC) override TARGET_CC =3D $(_CC) override STRIP =3D $(_STRIP) override GENMODSRC =3D $(_GENMODSRC) override INFO_GENCMDLIST =3D override INFO_GENFSLIST =3D override INFO_GENPARTMAPLIST =3D override INFO_GEN_FINAL_COMMAND_LIST =3D override INFO_GEN_FINAL_FS_LIST =3D override INFO_GEN_FINAL_PARTMAP_LIST =3D else override V_PREFIX :=3D @ override CC =3D @echo "COMPILE $<"; $(_CC) override TARGET_CC =3D @echo "COMPILE(TARGET) $<"; $(_TARGET_CC) override STRIP =3D @echo "STRIP $@"; $(_STRIP) override GENMODSRC =3D @echo "GENMODSRC $@"; $(_GENMODSRC) override INFO_GENCMDLIST =3D @echo "GENCMDLIST $@" override INFO_GENFSLIST =3D @echo "GENFSLIST $@" override INFO_GENPARTMAPLIST =3D @echo "GENPARTMAPLIST $@" override INFO_GEN_FINAL_COMMAND_LIST =3D @echo "GENCMDLIST[final] $@" override INFO_GEN_FINAL_FS_LIST =3D @echo "GENFSLIST[final] $@" override INFO_GEN_FINAL_PARTMAP_LIST =3D @echo "GENPARTMAPLIST[final] $@" endif I have held off on doing this with all new variables, because it would mean changing *every* reference to the toolchain variables. I found that by simply overriding them, it was really nonintrusive, in general. However, there were developers that objected to the overriding. Regards, Colin