Lines Matching refs:build
3 This document describes how to build an out-of-tree kernel module.
36 "kbuild" is the build system used by the Linux kernel. Modules must use
37 kbuild to stay compatible with changes in the build infrastructure and
46 complexity, so one only has to type "make" to build the module. This is
53 To build external modules, you must have a prebuilt kernel available
54 that contains the configuration and header files used in the build.
64 NOTE: "modules_prepare" will not build Module.symvers even if
65 CONFIG_MODVERSIONS is set; therefore, a full kernel build needs to be
70 The command to build an external module is:
77 To build against the running kernel use:
79 $ make -C /lib/modules/`uname -r`/build M=$PWD
84 $ make -C /lib/modules/`uname -r`/build M=$PWD modules_install
110 The default will build the module(s) located in the current
135 It is possible to build single files that are part of a module.
148 In the last section we saw the command to build a module for the
150 build file is required. Contained in this file will be the name of
156 The kbuild system will build <module_name>.o from <module_name>.c,
167 The examples below demonstrate how to create a build file for the
193 KDIR ?= /lib/modules/`uname -r`/build
225 KDIR ?= /lib/modules/`uname -r`/build
253 KDIR ?= /lib/modules/`uname -r`/build
279 build the kernel module 8123.ko; it has been included as
290 kbuild supports building multiple modules with a single build
291 file. For example, if you wanted to build two modules, foo.ko
364 To build the module complex.ko, we then need the following
436 build.
440 During a kernel build, a file named Module.symvers will be
450 For a kernel build without CONFIG_MODVERSIONS enabled, the CRC
459 When building an external module, the build system needs access
483 compiled in the same build. Consider the following
507 built. During the module build, kbuild will read the
509 module, and when the build is finished, a new
516 of files to KBUILD_EXTRA_SYMBOLS in your build file.