- The Kernel is extremely configurable, but most of the settings are not something you want to worry about. To make a kernel that will be compatible with your existing OS, you want to base the configuration on those from your current kernel.
- Run the command cp /boot/config-$(uname -r)* .config from within the linux folder
- Now generate a new config based on those options.
- Run make olddefconfig to copy the existing settings, and automatically pick default values for new options
- You’re now ready to begin the actual build. Run this command:
- make -j$(nproc) vmlinux modules
Expect this to take a few hours! And crash many times!