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

Horst von Brand
2004-06-15T12:14:10Z

Sam Ravnborg <sam@ravnborg.org> said:
> # This is a BitKeeper generated diff -Nru style patch.
> #
> # ChangeSet
> # 2004/06/14 22:21:46+02:00 sam@mars.ravnborg.org

[...]

> --- /dev/null Wed Dec 31 16:00:00 196900
> +++ b/Documentation/kbuild/extmodules.txt 2004-06-14 22:25:21 +02:00
> @@ -0,0 +1,168 @@
> +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".

> +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
make -C <path to kernel src> SUBDIRS=<path to module source> modules_install
# Installs

Besides, IMHO this belongs in Documentation/kbuild/modules.txt.
--
Dr. Horst H. von Brand User #22616 counter.li.org
Departamento de Informatica Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria +56 32 654239
Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513