“bitbake”检测更改,但“make”不执行任何操作

问题描述 投票:0回答:1

我正在使用 yocto dunfell (3.1)。

我为我的应用程序构建了配方,其中“bitbake”调用“do_compile”,“do_compile”调用“oe_runmake”,后者运行“make”。 CFLAGS 在配方中定义,并由“oe_runmake”内部传递给“make”。 通常,这个过程运行正常。

问题出现在以下情况:

  1. 我只更改配方中的CFLAGS。来源没有任何变化。
  2. “bitbake”检测到更改,运行“do_compile”,后者运行“oe_runmake”,后者运行“make”。
  3. “make”没有检测到源头的任何更改,并且不执行任何操作。

在开发周期中,我可以在“bitbake”之前手动运行“make clean”,强制“make”使用新的 CFLAGS 编译所有源代码。然而,这个过程应该在构建服务器上运行,它会自动从 git 中提取新的修订版本并运行“bitbake”。

有什么想法吗?

makefile gnu-make yocto bitbake
1个回答
0
投票

如果

bitbake -c compile <recipe>
没有考虑到您所做的更改,请尝试执行
bitbake -c clean <recipe> && bitbake recipe
,或者,如果更改仅在配方中,例如。
CFLAGS:append = "...
您可以使用
bitbake -c cleanall <recipe>
清除整个配方的工作区。

© www.soinside.com 2019 - 2024. All rights reserved.