Re: [PATCH 5/5] kbuild: external module build doc

Sam Ravnborg
2004-06-15T20:00:49Z

On Tue, Jun 15, 2004 at 08:13:39AM -0400, Horst von Brand wrote:
> > +Building external modules
> > +=========================
> > +kbuild offers functionality to build external modules, with the
> > +prerequisite that there is a pre-built kernel avialable with full source.
>
> No. It should be enough to have run "make modules_prepare".

Correct - it was written some time ago.
I will fix.

> > +A subset of the targets available when building the kernel is available
> > +when building an external module.
> > +
> > +
> > +Building the module
> > +-------------------
> > +The command looks like his:
> > +
> > + make -C <path to kernel src> M=`pwd`
>
> For me, it works with:
>
> make -C <path to kernel src> SUBDIRS=<path to module source> modules
> # Builds

Today the modules target is not needed, and SUBDIRS= is equivalent to M=
The M= is more in line with other commandline specifiers, therefore documented.
SUBDIRS= will stay for a long time.

> make -C <path to kernel src> SUBDIRS=<path to module source> modules_install
> # Installs
>
> Besides, IMHO this belongs in Documentation/kbuild/modules.txt.

They will be merged when I'm in documentation mode - if noone beats me.

Sam