gpt4 book ai didi

configuration - Bitbake附加文件以重新配置内核

转载 作者:行者123 更新时间:2023-12-04 16:58:56 25 4
gpt4 key购买 nike

我正在尝试重新配置一些.config变量,以生成启用了wifi支持的修改内核。内核的 native 层/食谱位于以下目录中:

    meta-layer/recipes-kernel/linux/linux-yocto_3.19.bb

首先,我重新配置 native 内核以添加wifi支持(例如,添加CONFIG_WLAN = y):
    $ bitbake linux-yocto -c menuconfig

之后,我生成一个“fragment.cfg”文件:
    $ bitbake linux-yocto -c diffconfig

我已经将此目录创建到我的自定义层中:
    custom-layer/recipes-kernel/linux/linux-yocto/

我已经将“fragment.cfg文件复制到此目录中:
    $ cp fragment.cfg custom-layer/recipes-kernel/linux/linux-yocto/

我创建了一个附加文件来自定义 native 内核配方:
    custom-layer/recipes-kernel/linux/linux-yocto_3.19.bbappend

这是此附加文件的内容:
    FILESEXTRAPATHS_prepend:="${THISDIR}/${PN}:"
SRC_URI += "file://fragment.cfg"

之后,我执行内核编译:
    $ bitbake linux-yocto -c compile -f

执行此命令后,可以在此工作目录中找到“fragment.cfg”文件:
    tmp/work/platform/linux-yocto/3.19-r0

但是,.config文件上没有任何预期的变量处于 Activity 状态(例如,未设置CONFIG_WLAN)。

如何调试此问题?我应该怎么做错了?

最佳答案

添加此配置时,您想在语句中使用append,例如:
SRC_URI_append = "file://fragment.cfg"

关于configuration - Bitbake附加文件以重新配置内核,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36301504/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com