环境信息
下载内核源码包
这里下载4.19版本的内核源码包,当前最新为4.19.315
https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.19.315.tar.xz
准备编译环境
# 安装编译需要的依赖包
yum install rpm-devel rpmdevtools
yum groupinstall "Development Tools"
yum install ncurses-devel bc elfutils-libelf-devel openssl-devel
制作rpm包
make rpm-pkg
FAQ
No rule to make target 'certs/kylinos.pem', needed by 'certs/x509_certificat
解决:
修改.config文件
CONFIG_SYSTEM_TRUSTED_KEYS=""
参考资料:https://www.cnblogs.com/xia-dong/p/13603123.html