From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756730AbYIRUUl (ORCPT ); Thu, 18 Sep 2008 16:20:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754588AbYIRUUd (ORCPT ); Thu, 18 Sep 2008 16:20:33 -0400 Received: from ns1.suse.de ([195.135.220.2]:38925 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754236AbYIRUUc (ORCPT ); Thu, 18 Sep 2008 16:20:32 -0400 Date: Thu, 18 Sep 2008 22:20:31 +0200 Message-ID: From: Takashi Iwai To: "Giacomo A. Catenazzi" Cc: Mauro Carvalho Chehab , linux-kernel@vger.kernel.org Subject: Re: diet-kconfig: a script to trim unneeded kconfigs In-Reply-To: <48D27734.3040600@cateee.net> References: <20080918122541.2c3c7b39@areia.chehab.org> <48D27734.3040600@cateee.net> User-Agent: Wanderlust/2.12.0 (Your Wildest Dreams) SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (=?ISO-8859-4?Q?Sanj=F2?=) APEL/10.6 Emacs/22.2 (x86_64-suse-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org At Thu, 18 Sep 2008 17:43:48 +0200, Giacomo A. Catenazzi wrote: > > Mauro Carvalho Chehab wrote: > > Hi Takashi, > > > > On Wed, 17 Sep 2008 01:55:26 +0200 > > Takashi Iwai wrote: > > >> The script is VERY hackish. I should have begun with perl or whatever > >> better script language, but I chose bash and co. So, don't expect > >> much code quality. I'm no script guy after all :) > > > > Using just a shellscript and binutils seems to be better than using other > > tools, since it allows the usage on minimal configured systems where the user > > might not have perl or other scripting languages. > > But very slow, complex and not enough powerful: > The tools should have extensive knowledge about Kconfig, > and the CONFIG_ dependencies; it should handle a lot of > structures (text/binary; line/record oriented; etc.), which > it is not easy in shell (awk, od, sed with extended regexp are > not core utilities). It's not that slow. > So my suggestion is: do it in a high level language, to find and > stabilize the design, and then integrate it in kconfig later (using > C). Maybe a good idea to add such functionality into kbuild itself. It's THE parser after all. thanks, Takashi