• Home
  • Raw
  • Download

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
205 KDIR ?= /lib/modules/`uname -r`/build
239 KDIR ?= /lib/modules/`uname -r`/build
268 KDIR ?= /lib/modules/`uname -r`/build
295 build the kernel module 8123.ko; it has been included as
307 kbuild supports building multiple modules with a single build
308 file. For example, if you wanted to build two modules, foo.ko
386 To build the module complex.ko, we then need the following
462 build.
467 During a kernel build, a file named Module.symvers will be
481 For a kernel build without CONFIG_MODVERSIONS enabled, the CRC
492 When building an external module, the build system needs access
514 compiled in the same build. Consider the following
535 of files to KBUILD_EXTRA_SYMBOLS in your build file.