linux - 使用 Buildroot 从自定义 .config 构建内核

标签 linux raspberry-pi kernel config buildroot

我正在尝试使用 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/

相关文章:

android - 如何将文件系统移植到Android?

python - '类型错误 : Not implemented for this type' when trying to make a Scatter plot in matplotlib

Python-Twitter 脚本在家里工作,而不是在大学工作。截止日期真的很快

linux - 将特定的虚拟地址映射到特定的物理地址

python - pygtk 将图像缩放到宽度和高度

linux - 在 Simulink 中使用 Matlab Raspberry PI Support Package 函数作为 Matlab Function Block

c - 如何从另一个模块调用导出的内核模块函数?

c - 确保客户端上的文件状态与 NFS 服务器同步

linux - 如何在 visual studio 跨平台 cmake 项目中的远程 linux 主机上设置环境变量

linux - Bash 脚本 linux : Lay-out and output of a script