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

From: Horst von Brand
Date: Tue Jun 15 2004 - 07:15:14 EST


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

[...]

> --- /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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/