首页 > 解决方案 > 在 certs/x509_certificate_list 需要时编译 linux 内核时没有规则来制定目标。停止

问题描述

我正在尝试编译内核(以前没有这样做过)我收到错误,如下面的屏幕商店

在此处输入图像描述

我尚未验证从 kernel.org 下载的内核(未验证签名)其版本 Linux 5.10.33。这个内核也有一个签名。

我想知道如何解决这个错误。

如果它发生是因为我没有验证签名然后想知道

-> 如何跳过签名检查并继续编译内核到最后并获得最终输出文件/文件以便我可以安装它(linux 5.10.33)

-> 如何验证签名并能够解决此错误并编译内核

标签: linuxmakefilecompiler-errorscompilationlinux-kernel

解决方案


对于你的第一个问题:

-> 如何跳过签名检查并继续编译内核到最后并获得最终输出文件/文件以便我可以安装它(linux 5.10.33)

通过菜单配置 UI 更改您的 .config:

# Navigate to the linux source directory (mine is at the root dir)
cd /linux

# start the editable menuconfig UI
make menuconfig

# Navigate to: 
# Cryptographic API
#    > Certificates for signature checking
#       > X.509 certificates to be preloaded into the system blacklist keyring
# Change the 'debian/certs/debian-uefi-certs.pem' string to ''

# Save your .config and exit the menuconfig UI

推荐阅读