How to compile the Linux kernel
#访问 https://www.kernel.org/ 查看最新的内核版本,获取下载链接
#下载并解压到当前目录
1  | wget -qO- https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.15.13.tar.xz | tar Jxvf -  | 
#编译配置
1  | cp /boot/config-`uname -r` .config  | 
#开始编译
1  | make -j $(nproc)  | 
#安装到系统中
1  | sudo make INSTALL_MOD_STRIP=1 modules_install  |