Originally Posted by kmand
That assumes that I have already built the modules once. What I'm asking is can I build just one module without building all of them?
Ah… quite true. Another possibility is to obtain from your distribution the sourcetree and buildtree for your current kernel (if that’s possible).
In any case, you can always force the rebuild of a particular module with make as well (by passing the pathname to make). E.g., if I want to rebuild the rtc.ko
module, I would type the following:
$ make drivers/char/rtc.ko
Note that this should be done in a preconfigured kernel source tree (and all dependencies of rtc.ko
might also be built).
If you ever need quick help with the kernel make system, “make help
” will explain most of the targets.