Steps to compile the kernel

Iwanan Wikipediasta
Versio hetkellä 17. joulukuuta 2020 kello 18.38 – tehnyt Iwana (keskustelu | muokkaukset)
(ero) ← Vanhempi versio | Nykyinen versio (ero) | Uudempi versio → (ero)
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