Re: [PATCH] kbuild: generate modules.builtin

From: Scott James Remnant
Date: Wed May 27 2009 - 17:39:25 EST


On Wed, 2009-05-27 at 23:26 +0200, Kay Sievers wrote:

> On Tue, May 26, 2009 at 17:25, Michal Marek <mmarek@xxxxxxx> wrote:
> > To make it easier for tools like mkinitrd to detect whether a needed
> > module is missing or whether it is compiled into the kernel, install a
> > modules.builtin file listing all modules built into the kernel. This is
> > done by generating an alternate config file with all tristate =y options
> > set to =Y and reading the makefiles with this config included. The built
> > in modules then appear in obj-Y.
>
> That looks very useful.
>
> We like to have that for modprobe not to throw an error if a "module"
> is already in the kernel, because it is compiled in. Only modules with
> parameters show up in /sys/modules/ and they are already handled fine.
>
Agree, this helps us support both distro kernels with some built-ins and
modular kernels.

Scott
--
Scott James Remnant
scott@xxxxxxxxxx

Attachment: signature.asc
Description: This is a digitally signed message part