From owner-freebsd-current@FreeBSD.ORG Sun Dec 15 06:22:10 2013 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BECF6147 for ; Sun, 15 Dec 2013 06:22:10 +0000 (UTC) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.59.238]) by mx1.freebsd.org (Postfix) with ESMTP id 81D111D38 for ; Sun, 15 Dec 2013 06:22:10 +0000 (UTC) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id 2BD847300A; Sun, 15 Dec 2013 07:25:02 +0100 (CET) Date: Sun, 15 Dec 2013 07:25:02 +0100 From: Luigi Rizzo To: Rui Paulo Subject: Re: 'silent' kernel builds ? Message-ID: <20131215062502.GA99699@onelab2.iet.unipi.it> References: <20131215054529.GB99455@onelab2.iet.unipi.it> <210A5B78-8220-499D-930E-F042A3DD4360@felyko.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <210A5B78-8220-499D-930E-F042A3DD4360@felyko.com> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: "current@freebsd.org Current" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Dec 2013 06:22:10 -0000 On Sat, Dec 14, 2013 at 09:53:30PM -0800, Rui Paulo wrote: > On 14 Dec 2013, at 21:45, Luigi Rizzo wrote: > > > Hi, > > I was trying to make buildkernel a bit quieter (just listing > > the name of the file being compiled). > > > > I hoped to modify the " .c.o: " rules in share/sys.mk but apparently > > kernel builds generate their own Makefile using definitions in > > sys/conf/kern.pre.mk . > > > > As a result, a patch like the one below gets most of the work done > > (a few extra bits are necessary to mask the awk calls, and the > > 'irregular' compiler invocations). > > > > However I could not found the rule definition used to build modules, > > any idea where to look ? > > sys/conf/kmod.mk ... ok, which in turn ends up into share/sys.mk at least for the .c.o rule > > And finally, is there interest in this feature ? > > I think it would be nice to have, maybe enabled by default. Does it still print the errors? I think so, but I'm not sure. Yes it does print errors, just checked. I am not worried about making it a default, POLA probably suggests otherwise and it is simple to control it through a make.conf or environment variable. thanks luigi