[英]overriding defconfig in bbappend file
In my chip vendors recipe they define在我的芯片供应商配方中,他们定义
SRC_URI += "file://defconfig"
In my own layer, I want to override their defconfig and use my own.在我自己的层中,我想覆盖他们的 defconfig 并使用我自己的。 I have a bbappend file in my recipe-kernel layer that adds my own defconfig file.我的配方内核层中有一个 bbappend 文件,它添加了我自己的 defconfig 文件。 My bbappend file:我的 bbappend 文件:
SECTION = "kernel"
SUMMARY = "Kernel config and device tree customization"
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI += "file://defconfig"
SRC_URI += "file://tree_changes.diff"
The tree_changes.diff file is being applied so my bbappend file is being used at least for that.正在应用 tree_changes.diff 文件,因此我的 bbappend 文件至少用于此目的。
The problem is that the vendor defconfig is always used.问题是始终使用供应商 defconfig。 I dont really want to touch the vendors recipes, is there any better way of overriding the defconfig?我真的不想接触供应商的食谱,有没有更好的方法来覆盖 defconfig?
The chip vendor (Atmel/Microchip) bbfile is here: https://github.com/linux4sam/meta-atmel/blob/dunfell/recipes-kernel/linux/linux-at91_5.4.bb芯片供应商(Atmel/Microchip)bbfile在这里: https://github.com/linux4sam/meta-atmel/blob/dunfell/recipes-kernel/linux/linux-at91_5.4.bb
Could it be that your defconfig file is not located under ${THISDIR}/files/<machine> in your layer but rather under ${THISDIR}/files?会不会是您的 defconfig 文件不在您所在层的 ${THISDIR}/files/<machine> 下,而是在 ${THISDIR}/files 下?
${THISDIR}/files/<distro> or ${THISDIR}/files/<machine> have a higher priority than just ${THISDIR}/files. ${THISDIR}/files/<distro> 或 ${THISDIR}/files/<machine> 具有比 ${THISDIR}/files 更高的优先级。
The different defconfig files are located in不同的 defconfig 文件位于
in vendor meta-layer, so they would still be used.在供应商元层中,因此它们仍将被使用。
So you would need to move your defconfig file to ${THISDIR}/files/<your_machine> in your custom layer.因此,您需要将您的 defconfig 文件移动到自定义层中的 ${THISDIR}/files/<your_machine> 中。 Note that FILESEXTRAPATHS_prepend = "${THISDIR}/files:" remains the same in the recipe.请注意 FILESEXTRAPATHS_prepend = "${THISDIR}/files:" 在配方中保持不变。 Yocto takes care of extending the path. Yocto 负责扩展路径。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.