gpt4 book ai didi

Different GCC versions between yocto layers on same branch(同一分支上的Yocto层之间的不同GCC版本)

转载 作者:bug小助手 更新时间:2023-10-24 20:38:27 24 4
gpt4 key购买 nike



I am following the STM32MP1 and yocto tutorial by Shawn Hymel (tutorial is on the dunfell branch, I am trying to do it on mickledore). While configuring the kernel (command: bitbake -c menuconfig virtual/kernel), I got the following error message:

我正在学习Shawn Hymel的STM32MP1和Yocto教程(教程在Dunfell分支上,我正在尝试在Mickledore上做它)。在配置内核(命令:bitbake-c menuconfig虚拟/内核)时,我收到以下错误消息:


ERROR: No recipes in default available for:

/home/michael/yocto/meta-st-stm32mp/recipes-devtools/gcc/gcc-source_12.2.bbappend

While localising the files in question I noticed that the meta-st-stm32mp layer works with GCC v12.2 while the meta-devtools layer in poky uses v12.3. I expect this to be the source of the error.
The related files I have are

在本地化有问题的文件时,我注意到meta-st-stm32MP层使用GCC v12.2,而poky中的meta-DevTools层使用v12.3。我预计这将是错误的来源。我拥有的相关文件有


/home/michael/yocto/poky/meta/recipes-devtools/gcc/gcc-source_12.3.bb

/home/michael/yocto/meta-st-stm32mp/recipes-devtools/gcc/gcc-source_12.2.bbappend


  1. Is the identified root cause of the error correct?

  2. Is there something I can do about this other than waiting for st to update their bsp?


更多回答

Just rename the bbappend file to the correct version to avoid this error. The bbappend applies one patch. Chances are that it will apply cleanly (it's just a minor version bump), though there is a small possibility that you will have to adapt it to the new version.

只需将bbappend文件重命名为正确的版本即可避免此错误。Bbappend应用一个补丁。它可能会应用得很干净(这只是一个小的版本提升),尽管有一个小的可能性,你将不得不适应新的版本。

Thank you. This seems to work (image is not fully tested yet)

谢谢。这似乎起作用了(图像还没有完全测试)

优秀答案推荐

As skandigraun commented, the solution consisted in renaming the original gcc-source_x.xx.bbappend file to the one found in the recipes-devtools/gcc folder (gcc-source_y.yy.bb). Also, I had to add the LICENSE="GPL" field to the original file, otherwise yocto yields about it. Use there the appropriate license.

正如skandigraun所评论的,解决方案是将原始的GCC-源_x.xx.bb附加文件重命名为Recies-DevTools/GCC文件夹中的文件(GCC-源_y.yy.bb)。此外,我还必须在原始文件中添加license=“GPL”字段,否则Yocto会放弃它。在那里使用适当的许可证。


更多回答

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