From: Takashi Iwai <tiwai@suse.de>
To: "Giacomo A. Catenazzi" <cate@cateee.net>
Cc: Mauro Carvalho Chehab <mchehab@infradead.org>,
Steven Rostedt <rostedt@goodmis.org>,
linux-kernel@vger.kernel.org
Subject: Re: diet-kconfig: a script to trim unneeded kconfigs
Date: Fri, 19 Sep 2008 18:01:45 +0200 [thread overview]
Message-ID: <s5hy71oyviu.wl%tiwai@suse.de> (raw)
In-Reply-To: <48D36D02.4090003@cateee.net>
At Fri, 19 Sep 2008 11:12:34 +0200,
Giacomo A. Catenazzi wrote:
>
> Instead of replying all other emails, it is simpler to explain my
> approach.
>
> The purpose of my program is to find all CONFIG_s, which are needed to
> support all the hardware (and some more), and to show them in
> menuconfig. This is the main difference with Takashi purpose:
> he wants to build a bootable (without initramfs) kernel, starting
> to an high modular kernel (usually found in distribution),
> so no usable on an already optimized machine.
Yes. Your stuff would be actually helpful for people who want
a really slim kernel config.
> Anyway there are a lot of overlapping tasks, which we could
> exchange.
Right, for example, kconfig parser can be shared.
Mine is pretty simplistic, and very likely incomplete.
> My design (files and sample output are in
> http://cateee.net/sources/autokernconf/autokernconf-2008-08-29/ ):
>
> kdetect.sh: detects hardwares, in a redundant manner, in order
> to have data if there are missing one ore more between: /proc,
> /sys, lspci, ...
>
> autokernconf.sh: a shell script which read the driver database
> (lkddb.list) and kdetect output; it generates the desired CONFIG_s.
>
> So far, so simple, and similar to Takashi method. I only split
> the task in two programs (detection and configuration).
>
> The big difference is in the additional program, which generated the
> driver database: it reads all sources, it checks 25 subsystems
> (see http://cateee.net/lkddb/statistics.html ), taking in account
> to preprocessors (#ifdef CONFIG_...), #defines, static strings, masks,
> all architectures, etc.
> Additionally it parse Makefile and Kconfig to find the dependencies
> of every source file.
>
> It misses some generic detection (CPU, memory), which Takashi is
> doing, and the kconfig integration.
>
> So I think most part could be integrated with the Takashi proposal, and
> doing optionally the parsing of full driver database.
Agreed.
I think a good start would be to integrate a simple version of parser
and trim-down mechanism into the upstream kbuild system, so that you
can call such as "make diet", as Mauro mentioned.
BTW, Steve Rostedt told in the last night that he uses also his own
stuff for the same diet kconfig.
Steve, can we share your script, too?
thanks,
Takashi
next prev parent reply other threads:[~2008-09-19 16:02 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-16 23:55 Takashi Iwai
2008-09-18 14:01 ` Giacomo A. Catenazzi
2008-09-18 20:09 ` Takashi Iwai
2008-09-18 15:25 ` Mauro Carvalho Chehab
2008-09-18 15:43 ` Giacomo A. Catenazzi
2008-09-18 16:27 ` Mauro Carvalho Chehab
2008-09-19 9:12 ` Giacomo A. Catenazzi
2008-09-19 16:01 ` Takashi Iwai [this message]
2008-09-19 23:55 ` Chris Li
2008-09-19 23:57 ` Chris Li
2008-09-22 10:01 ` Takashi Iwai
2008-09-22 13:39 ` Giacomo A. Catenazzi
2008-09-22 15:41 ` Steven Rostedt
2008-09-22 15:50 ` Takashi Iwai
2008-09-22 19:25 ` Chris Li
2008-09-23 11:31 ` Takashi Iwai
2008-09-23 18:15 ` Chris Li
2008-09-23 18:50 ` Takashi Iwai
2008-09-23 19:40 ` Chris Li
2008-09-18 20:20 ` Takashi Iwai
2008-09-18 20:17 ` Takashi Iwai
2008-09-18 21:09 ` Valdis.Kletnieks
2008-09-18 22:14 ` Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s5hy71oyviu.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=cate@cateee.net \
--cc=linux-kernel@vger.kernel.org \
--cc=mchehab@infradead.org \
--cc=rostedt@goodmis.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®