July 9, 2013
2:21 p.m.
On Tue, 09 Jul 2013 13:16:53 +0530, Srinivas Ganji said:
You can pass the name of the target to the make for building only the specified files and objects. Suppose, if I changed some modifications in storage files, then I need to do make as shown below, from the top level directory i.e. /usr/src/<linux-kernel>/
make M=drivers/usb/storage
I hope this helps to you. I got the same problem earlier and I fixed like this.
This is good for testing, but do *not* bet on this producing a working kernel. It's possible to build a module that doesn't match the rest of your kernel, resulting in hard-to-debug oopses.