This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
器件型号:BEAGLEBK
工具/软件:Linux
您好!
我想使用 Yocto 在 BeagleBone Black 上构建系统来更改 u-boot 的配置。 我使用"AM335x-EVM"机器来构建映像。
我成功应用了源代码更改。 此外、我还可以使用 menuconfig 修改配置并将其保存到新的 defconfig 文件中。 但是、我在使用 Yocto 构建系统应用配置片段时遇到了问题。 下面是我所做的:
1.在 AM335x_EVM_defconfg 和新 defconfig 之间生成一个 diff:Git diff AM335x_EVM_defconfg > u-boot-config-changes.cfg。
2.在.bbappend 文件中为 u-boot-ti-staging 添加片段:
FILESEXTRAPATHS_PREPEND:="${THISDIR}/文件:"
SRC_URI +="文件://u-boot-config-changes.cfg \
文件://u-boot-source-code-change-1.diff \
文件://u-boot-source-code-change-2.diff
3. bitbake 虚拟/引导加载程序
这对于源代码更改非常有效。 但是、对于 u-boot 配置、不会更改工作目录中的 AM335x_EVM_defconfg 以及生成的.config。 AM335x_EVM_defconfg 是否在"补丁"后被覆盖? 这样做的正确方法是什么?
感谢您的帮助!
结果是 bitbake 不会使用.cfg 扩展名修补文件名。 将其更改为.diff 即可解决问题。
正确。 仅以*。patch 和*。diff 结尾的文件将被 DO 补丁任务应用。 此处介绍了此过程。