mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 18:25:57 +01:00
16 lines
356 B
Markdown
16 lines
356 B
Markdown
# Build
|
|
|
|
The module building system.
|
|
|
|
Kernel modules are built using a makefile located at:
|
|
|
|
/lib/modules/$(uname -r)/build
|
|
|
|
## includes
|
|
|
|
Header files come from the same directory as the makefile: `/lib/modules/$(uname -r)/build`.
|
|
|
|
TODO how is that different from: `/usr/src/linux-headers-$(uname -r)/` ?
|
|
|
|
Those come directly from the kernel source tree.
|