我正在使用 yocto dunfell (3.1)。
我为我的应用程序构建了配方,其中“bitbake”调用“do_compile”,“do_compile”调用“oe_runmake”,后者运行“make”。 CFLAGS 在配方中定义,并由“oe_runmake”内部传递给“make”。 通常,这个过程运行正常。
问题出现在以下情况:
在开发周期中,我可以在“bitbake”之前手动运行“make clean”,强制“make”使用新的 CFLAGS 编译所有源代码。然而,这个过程应该在构建服务器上运行,它会自动从 git 中提取新的修订版本并运行“bitbake”。
有什么想法吗?
如果
bitbake -c compile <recipe>
没有考虑到您所做的更改,请尝试执行bitbake -c clean <recipe> && bitbake recipe
,或者,如果更改仅在配方中,例如。 CFLAGS:append = "...
您可以使用bitbake -c cleanall <recipe>
清除整个配方的工作区。