【发布时间】:2016-07-18 00:34:38
【问题描述】:
我正在尝试重新配置一些 .config 变量以生成启用了 wifi 支持的修改内核。内核的本机层/配方位于此目录中:
meta-layer/recipes-kernel/linux/linux-yocto_3.19.bb
首先我重新配置原生内核以添加 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/
我创建了一个附加文件来自定义本机内核配方:
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 文件中没有任何预期变量处于活动状态(例如,未设置 CONFIG_WLAN)。
如何调试此问题?应该是我做错了什么?
【问题讨论】:
-
哪个版本的 OE?你能告诉我们你的食谱吗?
-
我认为 OE 版本与此无关,但如果有帮助,DISTRO="poky" 和 DISTRO_VERSION="1.8"。配方的内容正是包含在 custom-layer/recipes-kernel/linux/linux-yocto_3.19.bbappend
标签: configuration linux-kernel bitbake