|
Re: How to build source kernel
It is also documented in the source... Look in the README file as there are a number of variations.
The big one to remember is to copy a working initial configuration (this saves a LOT of time when starting) with "cp /boot/config-<version> .config" before running "make [menu|x|g|old|silent|...]config" (whichever you choose, and there are a fair number of options). This is where you can make custom configuration selections.
Once the configuration is completed, you can then do
1) make - which builds the kernel
2) make modules -- which builds modules (this step is sometimes dropped)
3) as root: make modules_install install
This last step will create modules (if not already created), install them in /lib, and create the initrd. The "install" target will put the kernel, config file, and initrd in /boot.
On my non-EFI the last steps put the kernel and initrd in /boot.
You will have to edit the grub boot menu to add that custom kernel to the menu.
---------- Post added at 09:55 AM ---------- Previous post was at 09:53 AM ----------
Most of the time, there is no issue with the kernel (I've done it several times to get patches that haven't yet made it to the repositories, which can take a month or so).
|