Lines Matching full:modules
2 Building External Modules
10 "kbuild" is the build system used by the Linux kernel. Modules must use
12 to pick up the right flags to the compiler. Functionality for building modules
14 either is similar, and all modules are initially developed and built
18 in building out-of-tree (or "external") modules. The author of an
25 How to Build External Modules
28 To build external modules, you must have a prebuilt kernel available
30 Also, the kernel must have been built with modules enabled. If you are
37 building external modules.
55 $ make -C /lib/modules/`uname -r`/build M=$PWD
60 $ make -C /lib/modules/`uname -r`/build M=$PWD modules_install
66 $ make -f /lib/modules/`uname -r`/build/Makefile M=$PWD
75 You can optionally pass MO= option if you want to build the modules in
110 modules
111 The default target for external modules. It has the
117 /lib/modules/<kernel_release>/updates/, but a prefix may
125 List the available targets for external modules.
132 external modules.
191 KDIR ?= /lib/modules/`uname -r`/build
220 KDIR ?= /lib/modules/`uname -r`/build
226 each file; however, some external modules use makefiles
240 KDIR ?= /lib/modules/$(shell uname -r)/build
245 Building Multiple Modules
248 kbuild supports building multiple modules with a single build
249 file. For example, if you wanted to build two modules, foo.ko
292 External modules tend to place header files in a separate
350 Modules which are included in the kernel are installed in the
353 /lib/modules/$(KERNELRELEASE)/kernel/
355 And external modules are installed in:
357 /lib/modules/$(KERNELRELEASE)/updates/
367 => Install dir: /frodo/lib/modules/$(KERNELRELEASE)/kernel/
372 and out-of-tree modules.
377 External modules are by default installed to a directory under
378 /lib/modules/$(KERNELRELEASE)/updates/, but you may wish to
379 locate modules for a specific functionality in a separate
385 => Install dir: /lib/modules/$(KERNELRELEASE)/gandalf/
401 Symbols From the Kernel (vmlinux + modules)
406 the kernel and compiled modules. For each symbol, the
423 1) It lists all exported symbols from vmlinux and all modules.
446 Symbols and External Modules
468 If you have two modules, foo.ko and bar.ko, where
470 common top-level kbuild file so both modules are
486 will then do the expected and compile both modules with
503 Modules often need to check for certain `CONFIG_` options to