Lines Matching refs:kernel

4 === Infrastructure for packages building kernel modules
7 build and install Linux kernel modules. Some packages only contain a kernel
8 module, other packages contain programs and libraries in addition to kernel
11 [[kernel-module-tutorial]]
12 ==== +kernel-module+ tutorial
15 builds a kernel module, and no other component:
30 13: $(eval $(kernel-module))
37 On line 13, we invoke the +kernel-module+ helper infrastructure, that
39 that kernel module.
49 build a kernel module, but also, if needed, use any one of other package
51 executables...). Using the +kernel-module+ infrastructure on its own is
80 24: $(eval $(kernel-module))
85 the kernel module located in sub-directory +driver/base+ and, if libbar
86 is enabled, the kernel module located in sub-directory +driver/bar+, and
91 [[kernel-module-reference]]
92 ==== +kernel-module+ reference
94 The main macro for the kernel module infrastructure is +kernel-module+.
98 The +kernel-module+ macro defines post-build and post-target-install
99 hooks to build the kernel modules. If the package's +.mk+ needs access
100 to the built kernel modules, it should do so in a post-build hook,
101 *registered after* the call to +kernel-module+. Similarly, if the
102 package's +.mk+ needs access to the kernel module after it has been
104 the call to +kernel-module+. Here's an example:
107 $(eval $(kernel-module))
118 +host-kernel-module+ variant to build a host kernel module.
121 configure the build of the kernel module:
124 to the package source top-directory) where the kernel module sources are.
125 If empty or not set, the sources for the kernel module(s) are considered
131 [[kernel-variables]]
134 * +LINUX_DIR+ contains the path to where the Linux kernel has been
139 * +LINUX_VERSION_PROBED+ contains the real version string of the kernel,