Lines Matching refs:build

5 This document describes how to build an out-of-tree kernel module.
10 "kbuild" is the build system used by the Linux kernel. Modules must use
11 kbuild to stay compatible with changes in the build infrastructure and
20 complexity, so one only has to type "make" to build the module. This is
28 To build external modules, you must have a prebuilt kernel available
29 that contains the configuration and header files used in the build.
39 NOTE: "modules_prepare" will not build Module.symvers even if
40 CONFIG_MODVERSIONS is set; therefore, a full kernel build needs to be
46 The command to build an external module is::
53 To build against the running kernel use::
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
73 build directory.)
75 You can optionally pass MO= option if you want to build the modules in
81 The directory that contains the kernel and relevant build
103 The default will build the module(s) located in the current
130 It is possible to build single files that are part of a module.
145 In the last section we saw the command to build a module for the
147 build file is required. Contained in this file will be the name of
153 The kbuild system will build <module_name>.o from <module_name>.c,
164 The examples below demonstrate how to create a build file for the
191 KDIR ?= /lib/modules/`uname -r`/build
220 KDIR ?= /lib/modules/`uname -r`/build
240 KDIR ?= /lib/modules/$(shell uname -r)/build
248 kbuild supports building multiple modules with a single build
249 file. For example, if you wanted to build two modules, foo.ko
323 To build the module complex.ko, we then need the following
399 build.
404 During a kernel build, a file named Module.symvers will be
418 For a kernel build without CONFIG_MODVERSIONS enabled, the CRC
429 When building an external module, the build system needs access
451 compiled in the same build. Consider the following
472 of files to KBUILD_EXTRA_SYMBOLS in your build file.