public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* how to find out which module was built by which .config variables?
@ 2006-03-03 13:20 Alexander Mieland
  2006-03-03 13:35 ` Jan Engelhardt
  0 siblings, 1 reply; 4+ messages in thread
From: Alexander Mieland @ 2006-03-03 13:20 UTC (permalink / raw)
  To: LKML

[-- Attachment #1: Type: text/plain, Size: 1176 bytes --]

Hello,

I need to create a database with configuration options (the ones 
in .config) and the resulting kernel modules.

Is there any simple possibility (with bash and its applications) to find 
out, which kernel modules will be built by which .config options? I know 
that there are also many dependencies between the options and the modules 
and I want to add them to the database too. The dependencies can be found 
out with the Kconfig files, I think.

I've already looked into the source files of some modules, but I can not 
find any commonalities which would make it easy to find the module-name 
which will be build.

I've found some stuff like this:
#define DRIVER_NAME	"8139too"
or things linke:
#define <something>_MODULES_NAME	"some string which seems to be the 
descriptive name"

But this doesn't really help... :(

Sincerely

Alexander Mieland

-- 
Alexander 'dma147' Mieland                   2.6.15-ck3-r1-fb-my4 SMP
FnuPG-ID: 27491179                      Registered Linux-User #249600
http://blog.linux-stats.org                http://www.linux-stats.org
http://www.mieland-programming.de          http://www.php-programs.de

[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: how to find out which module was built by which .config variables?
  2006-03-03 13:20 how to find out which module was built by which .config variables? Alexander Mieland
@ 2006-03-03 13:35 ` Jan Engelhardt
  2006-03-03 13:39   ` Alexander Mieland
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Engelhardt @ 2006-03-03 13:35 UTC (permalink / raw)
  To: Alexander Mieland; +Cc: LKML

>Hello,
>
>I need to create a database with configuration options (the ones 
>in .config) and the resulting kernel modules.
>
Let's pick 8139too.ko for example.
Find /usr/src/linux -name 8139too.ko
In that same directory, look at the Makefile:
obj-$(CONFIG_8139TOO) += 8139too.o

>Is there any simple possibility (with bash and its applications) to find 
>out, which kernel modules will be built by which .config options? I know 
>that there are also many dependencies between the options and the modules 
>and I want to add them to the database too. The dependencies can be found 
>out with the Kconfig files, I think.
>
>I've already looked into the source files of some modules, but I can not 
>find any commonalities which would make it easy to find the module-name 
>which will be build.
>
>I've found some stuff like this:
>#define DRIVER_NAME	"8139too"
>or things linke:
>#define <something>_MODULES_NAME	"some string which seems to be the 
>descriptive name"
>
>But this doesn't really help... :(
>
>Sincerely
>
>Alexander Mieland
>
>-- 
>Alexander 'dma147' Mieland                   2.6.15-ck3-r1-fb-my4 SMP
>FnuPG-ID: 27491179                      Registered Linux-User #249600
>http://blog.linux-stats.org                http://www.linux-stats.org
>http://www.mieland-programming.de          http://www.php-programs.de
>

Jan Engelhardt
-- 
| Software Engineer and Linux/Unix Network Administrator

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: how to find out which module was built by which .config variables?
  2006-03-03 13:35 ` Jan Engelhardt
@ 2006-03-03 13:39   ` Alexander Mieland
  2006-03-03 14:04     ` Steven Rostedt
  0 siblings, 1 reply; 4+ messages in thread
From: Alexander Mieland @ 2006-03-03 13:39 UTC (permalink / raw)
  To: LKML

[-- Attachment #1: Type: text/plain, Size: 1468 bytes --]

Am Friday 03 March 2006 14:35 schrieben Sie:
> >Hello,
> >
> >I need to create a database with configuration options (the ones
> >in .config) and the resulting kernel modules.
>
> Let's pick 8139too.ko for example.
> Find /usr/src/linux -name 8139too.ko
> In that same directory, look at the Makefile:
> obj-$(CONFIG_8139TOO) += 8139too.o

Ahh, great, this helps much more!
Thanks. ;)


> >Is there any simple possibility (with bash and its applications) to
> > find out, which kernel modules will be built by which .config options?
> > I know that there are also many dependencies between the options and
> > the modules and I want to add them to the database too. The
> > dependencies can be found out with the Kconfig files, I think.
> >
> >I've already looked into the source files of some modules, but I can
> > not find any commonalities which would make it easy to find the
> > module-name which will be build.
> >
> >I've found some stuff like this:
> >#define DRIVER_NAME	"8139too"
> >or things linke:
> >#define <something>_MODULES_NAME	"some string which seems to be the
> >descriptive name"
> >
> >But this doesn't really help... :(

-- 
Alexander 'dma147' Mieland                   2.6.15-ck3-r1-fb-my4 SMP
FnuPG-ID: 27491179                      Registered Linux-User #249600
http://blog.linux-stats.org                http://www.linux-stats.org
http://www.mieland-programming.de          http://www.php-programs.de

[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: how to find out which module was built by which .config variables?
  2006-03-03 13:39   ` Alexander Mieland
@ 2006-03-03 14:04     ` Steven Rostedt
  0 siblings, 0 replies; 4+ messages in thread
From: Steven Rostedt @ 2006-03-03 14:04 UTC (permalink / raw)
  To: Alexander Mieland; +Cc: LKML


On Fri, 3 Mar 2006, Alexander Mieland wrote:

> Am Friday 03 March 2006 14:35 schrieben Sie:
> > >Hello,
> > >
> > >I need to create a database with configuration options (the ones
> > >in .config) and the resulting kernel modules.
> >
> > Let's pick 8139too.ko for example.
> > Find /usr/src/linux -name 8139too.ko
> > In that same directory, look at the Makefile:
> > obj-$(CONFIG_8139TOO) += 8139too.o
>
> Ahh, great, this helps much more!
> Thanks. ;)
>

I have a perl script that reads the current modules, Kconfigs and
makefiles that I use to trim the .config to a minimum.  I does do what you
ask.  Basically find the options that match the modules.

It's here:

http://www.kihontech.com/code/streamline_config.pl

-- Steve

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-03-03 14:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-03 13:20 how to find out which module was built by which .config variables? Alexander Mieland
2006-03-03 13:35 ` Jan Engelhardt
2006-03-03 13:39   ` Alexander Mieland
2006-03-03 14:04     ` Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox