I used to find the steps on this Ubuntu Wiki page quite useful, especially the bottom section. The instructions on building an upstream kernel (i.e. a kernel from git.kernel.org) with an overlay directory, as instructed on that page, have previously helped me in making a new kernel that was compatible with my Ubuntu installation.
However, it seems these instructions have grown out of date in a few ways:
- There is no longer a /usr/share/kernel-package directory by default, and the ubuntu package that used to install this directory (kernel-package) seems to have reached the end of its life with Ubuntu Focal - it's not there in the list of Groovy packages.
- The ubuntu-groovy repository does not have files debian/control-scripts/{postinst,postrm,preinst,prerm}
- make-kpkg, the command, seems to have disappeared, and I can't easily trace what is to be used in its place.
So... are there new instructions available somewhere? I would like to compile a new kernel to get kernel support for my Wifi card, which I've been using an unofficial driver for all this while, not that it matters all that much why I need a new kernel.
Also, I'm aware of AskUbuntu's norms against questions about using a custom kernel, but this question instead pertains to compiling a new kernel and should be on-topic.