ubuntu22.4 linux6.0 内核编译
sudo apt install make
sudo apt install gcc
sudo apt install libncurses-dev
sudo apt install flex
sudo apt install bison
sudo apt install pkg-config
fatal error: gelf.h: No such file or directory
sudo apt-get install libelf-dev
sudo apt-get install libssl-dev
编辑内核配置
make menuconfig
编辑内核
make
多线程编译
make -j 20
报出证书方面的异常,将.config文件中的debian/xxx的配置项设置为""
报出the frame size of 1024 bytes is larger than 1024 bytes [-Wframe-larger-than=]时,修改.config文件中的配置项CONFIG_FRAME_WARN=4096
编译成功后最后一句输出所在目录:
Kernel: arch/x86/boot/bzImage is ready (#1)
安装内核
make install
可选安装组件
sudo apt install screenfetch