2
2006
Howto: build Linux kernel module against installed kernel w/o full kernel source tree
Recently I received a question via email:
How do I build Linux kernel module against installed or running Linux kernel? Do I need to install new kernel source tree from kernel.org?
To be frank you do not need a new full source tree in order to just compile or build module against the running kernel i.e an exploded source tree is not required to build kernel driver or module.
This is essential because if you just want to compile and install driver for new hardware such as Wireless card or SCSI device etc. With following method, you will save the time, as you are not going to compile entire Linux kernel.
All you need to do is change Makefile to use current kernel build directory. You can obtain this directory name by typing following command:
[More in below Article ...]
Howto: build Linux kernel module against installed kernel w/o full kernel source tree
Originally from nixCraft by
