Ubuntu: Ubuntu kernel incremental build


I am trying to build from source and customize the kernel for the latest 17.10 distro (kernel v 4.13). I am following the instructions at https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel, however it seems that the build command

fakeroot debian/rules binary-headers binary-generic  

does not work incrementally. Whenever I change the source of the kernel, the build does not include that in the newly generated .deb packages. I have to clean and rebuild everytime. Is there a way to force that build to be incremental?


I use the the following when working on changes on the kernel:

1st build:

fakeroot debian/rules clean  debian/rules build  fakeroot debian/rules binary-headers binary-generic  

change a source file, and do a quick rebuild:

rm debian/stamps/stamp-build*  debian/rules build  fakeroot debian/rules binary-headers binary-generic  

The removal of the stamps/stamp-build allows one to rebuild without the need to perform the clean each time. If you are not changing the header files in any way then you can remove the binary-headers part of the final fakeroot build line to just rebuild the binary-generic packages

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »