I downloaded the kernel from the kernel.ubuntu.com repository and I am playing with it.
The kernel can be compiled using make oldconfig, make all and make modules_install. Then the kernel image can be copied to the /boot folder and the modules to the /lib.
So, why there is an another way to do it using debian/rules?
Doesnt it make it more complicated?
My second question is that I ran make mrproper and the directory debian was automatically deleted. How can I restore the debian directory again because all the rules pertaining to the compilation are stored there.
dpkg
at the primitive level,apt
orapt-get
at the next level. The suggestion is that this is undesirable. I do not believe that using the debian/rules method is new, but rather just a different method resulting in proper .deb file install-able as packages. While it might be considered more complicated, it is also considered more within the Ubuntu package management environment. – Doug Smythies Mar 22 '17 at 15:43