bcda6f42fe85d3149781e277f37babe97b32c552
[linux-flexiantxendom0-3.2.10.git] / Documentation / kbuild / modules.txt
1 For now this is a raw copy from the old Documentation/kbuild/modules.txt,
2 which was removed in 2.6.0-test5.
3 The information herein is correct but not complete.
4
5 Installing modules in a non-standard location
6 ---------------------------------------------
7 When the modules needs to be installed under another directory
8 the INSTALL_MOD_PATH can be used to prefix "/lib/modules" as seen
9 in the following example:
10
11 make INSTALL_MOD_PATH=/frodo modules_install
12
13 This will install the modules in the directory /frodo/lib/modules.
14 /frodo can be a NFS mounted filesystem on another machine, allowing
15 out-of-the-box support for installation on remote machines.
16
17
18 Compiling modules outside the official kernel
19 ---------------------------------------------
20 Often modules are developed outside the official kernel.
21 To keep up with changes in the build system the most portable way
22 to compile a module outside the kernel is to use the following command-line:
23
24 make -C path/to/kernel/src SUBDIRS=$PWD modules
25
26 This requires that a makefile exits made in accordance to
27 Documentation/kbuild/makefiles.txt.
28