Kernel build system

Often modules are developed outside the official kernel source. To keep up with changes in the build system the most portable way to compile a module outside the kernel is to use the kernel build system, kbuild.

First you have to get the kernel source, most probably the same version as your currently used kernel. You also need the source of the module you want to kbuild. To build a module uses

make -C path/to/kernel/src M=$PWD modules

This requires that a makefile exist in your module made in accordance to Documentation/kbuild/makefiles.txt in the kernel source.

Installation ???


Clicking on the feedback link allows you to send a a report to the mailing list. Please fill in all the fields and make your report as accurate as possible.