我已经尝试了很长时间来修改内核配置,但没有运气。:-(
在 meta-xxx-yyy/ 中有一个带有 recipes-kernel/linux/linux_git.bb 的 BSP。我尝试在名为 meta-xxx-mylayer 的层中覆盖内核配置,其中我有 recipes-kernel/linux/linux_git.bbappend 和 recipes-kernel/linux/files/frag.cfg
片段.cfg:
# CONFIG_NETFILTER is not set
CONFIG_AUTOFS4_FS=y
linux_git.bbappend:
COMPATIBLE_MACHINE_my_mach = "my_mach"
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI += "file://frag.cfg"
linux_git.bb:(只是文件的一部分)
KERNEL_RELEASE = "3.10"
PV = "3.10"
PR = "r10"
S = "${WORKDIR}/git"
COMPATIBLE_MACHINE = "(my_mach)"
meta-xxx-yyy/conf/machine/my_mach.conf:(没有meta-xxx-mylayer/conf/machine/my_mach.conf)
PREFERRED_PROVIDER_virtual/kernel = "linux"
UBOOT_MACHINE = "socfpga_cyclone5_config"
KERNEL_MACHINE = "socfpga"
构建命令:
bitbake linux -c cleansstate -f
bitbake linux -c configure -f
bitbake linux -c compile -f
bitbake linux -c deploy -f
一切都建立了,但是当我检查 /proc/config.gz 时,我可以看到 CONFIG_AUTOFS4_FS 未启用。
我在 meta-xxx-mylayer 层中有另一个配方,它可以很好地构建并安装到 rootfs 中,所以我知道该层已启用。
frag.cfg 文件在构建期间复制到 ./tmp/work/my_mach-poky-linux-gnueabi/linux/3.10-r10/,而其余文件在 ./tmp/work/my_mach-poky-linux -gnueabi/linux/3.10-r10/git/. 那是问题吗?
我究竟做错了什么???