Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757241Ab0GMXjT (ORCPT ); Tue, 13 Jul 2010 19:39:19 -0400 Received: from relais.videotron.ca ([24.201.245.36]:60387 "EHLO relais.videotron.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756634Ab0GMXjS (ORCPT ); Tue, 13 Jul 2010 19:39:18 -0400 MIME-version: 1.0 Content-type: multipart/mixed; boundary="Boundary_(ID_JS+nGVNbhixVXVfB1SVY1A)" Date: Tue, 13 Jul 2010 19:39:15 -0400 (EDT) From: Nicolas Pitre X-X-Sender: nico@xanadu.home To: Olof Johansson Cc: =?ISO-8859-15?Q?Uwe_Kleine-K=F6nig?= , Linus Torvalds , Grant Likely , Daniel Walker , Russell King - ARM Linux , Kevin Hilman , linux-arm-msm@vger.kernel.org, Linux Kernel Mailing List , linux-omap@vger.kernel.org, Eric Miao , linux-arm-kernel@lists.infradead.org, Stephen Rothwell , Benjamin Herrenschmidt , linuxppc-dev@lists.ozlabs.org Subject: Re: optimized script [Was: ARM defconfig files] In-reply-to: <20100713180402.GA1422@lixom.net> Message-id: References: <20100712173228.GC9897@n2100.arm.linux.org.uk> <20100712185029.GB14425@pengutronix.de> <20100713070741.GB26442@pengutronix.de> <20100713080705.GA20978@pengutronix.de> <20100713180402.GA1422@lixom.net> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2759 Lines: 65 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --Boundary_(ID_JS+nGVNbhixVXVfB1SVY1A) Content-type: TEXT/PLAIN; charset=iso-8859-1 Content-transfer-encoding: 8BIT On Tue, 13 Jul 2010, Olof Johansson wrote: > On Tue, Jul 13, 2010 at 10:07:05AM +0200, Uwe Kleine-K?nig wrote: > > Hello, > > > > On Tue, Jul 13, 2010 at 09:07:41AM +0200, Uwe Kleine-K?nig wrote: > > > Hi > > > > > > On Mon, Jul 12, 2010 at 01:50:47PM -0600, Grant Likely wrote: > > > > On Mon, Jul 12, 2010 at 1:34 PM, Linus Torvalds > > > > wrote: > > > > > On Mon, Jul 12, 2010 at 12:17 PM, Nicolas Pitre wrote: > > > > >> I think Uwe could provide his script and add it to the kernel tree. > > > > >> Then all architectures could benefit from it. ?Having the defconfig > > > > >> files contain only those options which are different from the defaults > > > > >> is certainly more readable, even on x86. > > > > > > > > > > Quite possible. But maintainers would need to be on the lookout of > > > > > people actually using the script, and refusing to apply patches that > > > > > re-introduce the whole big thing. > > > > > > > > I can (partially) speak for powerpc. If ARM uses this approach, then > > > > I think we can do the same. After the defconfigs are trimmed, I > > > > certainly won't pick up any more full defconfigs. > > > I just restarted my script on the powerpc defconfigs basing on rc5, I > > > assume they complete in a few days time. > > So Stephen was faster than me. I don't know yet how he optimised my > > script, meanwhile I put some efforts into it, too by just checking lines > > that match "^(# )?CONFIG_". > > > > Find it attached. > > > > I will start to reduce the remaining configs (i.e. all but arm and > > powerpc). > > I added just a simple heuristic: If I could remove a line, I attempted > to remove twice the amount next time around (and fall back to 1 if it failed). > [...] > > While this script is great, it is somewhat painful to run given that it > attempts one config per line. Even on a fast machine that tends to take > a while. The optimal solution is to add that .config reduction ability straight into the Kconfig parser (scripts/kconfig/*). There you can find out right away what are the non default state for each config option without actually trying them out one by one. Nicolas --Boundary_(ID_JS+nGVNbhixVXVfB1SVY1A)-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/