Rebuild a changed kernel quickly with make?

Valdis.Kletnieks at vt.edu Valdis.Kletnieks at vt.edu
Tue Jul 9 10:21:08 EDT 2013


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 865 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130709/f9ecbab1/attachment.bin 


More information about the Kernelnewbies mailing list