Steps to compile the kernel

Iwanan Wikipediasta
Siirry navigaatioon Siirry hakuun

Download latest stable from kernel.org

Unzip

tar xf linux-5.7.2.tar.xz && cd linux-5.7.2

Copy existing config (make things easy)

cp /boot/config-$(uname -r) .config

Use terminal based configuration tool

make menuconfig

If you have relatively recent hardware, this step will take most of your time. Add/remove stuff based on your hardware

Compile the kernel with Clang (Remove CC for compiling with gcc - the default C compiler)

make CC=clang -j12

Install the kernel

sudo make install

Update grub

sudo update-grub

Reboot

sudo reboot

Lähde