genkernel
Gentoo Linux utility to compile and install kernels. tldr-pages
On Linux
Linux
Automatically compile and install a generic kernel
sudo genkernel allIdentifyBuild and install the bzImage, initramfs, kernel, or ramdisk only
sudo genkernel bzImageIdentifyApply changes to the kernel configuration before compiling and installing
sudo genkernel --menuconfig allIdentifyGenerate a kernel with a custom name
sudo genkernel --kernname=custom_name allIdentifyUse a kernel source outside the default directory /usr/src/linux
sudo genkernel --kerneldir=path/to/directory allIdentify