Building kernel mods for an existing kernel
Suppose I have built a kernel from the official source and I want to add modules to it later on (from the same source), is it possible to do this without rebuilding what has been built?
For eg, my present kernel has sound support (sound.o and soundcore.o) but not a specific sound card's driver. I decide to build this driver based on my existing .config build settings. How do I accomplish this without rebuilding sound.o/soundcore.o (or the other modules for that matter)?
I'm able to individually compile the driver by doing...
make obj-m=trident.o modules
but trident.o has another dependency module (ac97_codec.o) that is not part of my existing kernel does not get built this way. i could manually figure out what deps are needed but this seems kind of error prone and time wasting. so is there a better way that will track and build all dependent mods (but not those deps that have already been built)?