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