Lines Matching full:build

5 This document describes how to build an out-of-tree kernel module.
10 === 2 How to Build External Modules
39 "kbuild" is the build system used by the Linux kernel. Modules must use
40 kbuild to stay compatible with changes in the build infrastructure and
49 complexity, so one only has to type "make" to build the module. This is
54 2. How to Build External Modules
57 To build external modules, you must have a prebuilt kernel available
58 that contains the configuration and header files used in the build.
68 NOTE: "modules_prepare" will not build Module.symvers even if
69 CONFIG_MODVERSIONS is set; therefore, a full kernel build needs to be
75 The command to build an external module is::
82 To build against the running kernel use::
84 $ make -C /lib/modules/`uname -r`/build M=$PWD
89 $ make -C /lib/modules/`uname -r`/build M=$PWD modules_install
117 The default will build the module(s) located in the current
143 It is possible to build single files that are part of a module.
158 In the last section we saw the command to build a module for the
160 build file is required. Contained in this file will be the name of
166 The kbuild system will build <module_name>.o from <module_name>.c,
177 The examples below demonstrate how to create a build file for the
204 KDIR ?= /lib/modules/`uname -r`/build
238 KDIR ?= /lib/modules/`uname -r`/build
267 KDIR ?= /lib/modules/`uname -r`/build
294 build the kernel module 8123.ko; it has been included as
306 kbuild supports building multiple modules with a single build
307 file. For example, if you wanted to build two modules, foo.ko
385 To build the module complex.ko, we then need the following
461 build.
466 During a kernel build, a file named Module.symvers will be
480 For a kernel build without CONFIG_MODVERSIONS enabled, the CRC
491 When building an external module, the build system needs access
516 compiled in the same build. Consider the following
540 built. During the module build, kbuild will read the
542 module, and when the build is finished, a new
549 of files to KBUILD_EXTRA_SYMBOLS in your build file.