I haven't done a kernel compile in so long! But, if I was to try it, I'd use a utility called 'buildkernel'. You configure the control script to do what you want to do. There is an option called EXTRAVERSION= which you can edit before building a new kernel.
I assume you want a new kernel because you want to:
a- reduce the bloat of a default kernel.
or
b- want to take advantage of features of your computer hardware, or some such, by compiling a custom kernel.
What buildkernel does, when you invoke the EXTRAKERNEL= is build the new kernel and a new /lib/modules for the new kernel (in parallel with the original), without touching the original. That way, you get to test the new kernel until you are satisfied before deleting the old, and you still have the old to boot into if the new doesn't work.
|