我正在尝试使用 buildroot 为 raspberrypi 3 生成自定义图像。我有一个用于 Buildroot 选项的自定义 .config
,我在其中给出了位于/boards/raspberrypi3/linux.config
BR2_KERNEL_CUSTOM_CONFIG_FILE
的路径
但是在构建的patching阶段我发现如下错误:
for f in boards/raspberrypi3/.config ; do
if [ ! -f "${f}" ]; then
printf "Kconfig fragment '%s' for '%s' does not exist\n" "${f}" "linux";
exit 1;
fi;
done
Kconfig片段
'boards/raspberrypi3/linux.config' for 'linux' does not exist
linux/linux.mk:555: recipe for target 'boards/raspberrypi3/.config' failed
当我只使用 buildroot 的 .config
而没有任何自定义 Linux 内核配置路径(使用 menuconfig 中的默认内核)时,一切都可以正常构建。
最佳答案
您的 Linux 配置文件的正确文件名是什么?您提到您将 BR2_KERNEL_CUSTOM_CONFIG_FILE 指向/boards/raspberrypi3/linux.config(大概没有前导斜线),但您的输出片段显示 boards/raspberrypi3/.config?
raspberrypi 3 文件的上游位置在 board/raspberrypi3 下(注意 BOARD 而不是 BOARDS)。请仔细检查
关于linux - 使用 Buildroot 从自定义 .config 构建内核,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56328894/