image-buildinfo.bbclass: add missing vardeps to buildinfo_target function
PATCH 1/1 image-buildinfo.bbclass: add missing vardeps to buildinfo_target function
From: Rasmus Villemoes <[email protected]>
Bitbake does see that buildinfo_target depends on the value of ${IMAGE_BUILDINFO_VARS} itself. So adding an element to that list does cause do_rootfs to run again.
But bitbake does not know that the value is a list of variable names whose values are fetched, so changing one of the mentioned variables does not guarantee that do_rootfs gets re-run.
Fix that by adding all the ${IMAGE_BUILDINFO_VARS} as [vardeps] for buildinfo_target.
--- meta/classes/image-buildinfo.bbclass | 2 ++ 1 file changed, 2 insertions(+)
meta/classes/image-buildinfo.bbclass +2 -0
@@ -41,6 +41,8 @@ def buildinfo_target(d): vars = (d.getVar("IMAGE_BUILDINFO_VARS") or "") return image_buildinfo_outputvars(vars, d) +buildinfo_target[vardeps] += "${IMAGE_BUILDINFO_VARS}" + python buildinfo() { if not d.getVar('IMAGE_BUILDINFO_FILE'): return
Signature · 1 line
2.56.0
Quoted 20 lines · Rasmus Villemoes
Quoted 10 lines · Rasmus Villemoes via openembedded-core
From: Rasmus Villemoes <[email protected]>
Bitbake does see that
buildinfo_targetdepends on the value of ${IMAGE_BUILDINFO_VARS} itself. So adding an element to that list does causedo_rootfsto run again.But bitbake does not know that the value is a list of variable names whose values are fetched, so changing one of the mentioned variables does not guarantee that
do_rootfsgets re-run.Quoted 7 lines
Fix that by adding all the ${IMAGE_BUILDINFO_VARS} as [vardeps] for
buildinfo_target.Signed-off-by Rasmus Villemoes <[email protected]>Signed-off-by Mathieu Dubois-Briand <[email protected]>Signed-off-by Richard Purdie <[email protected]>(cherry picked from commit 69543bcbcebef81e2797a0cf5662602876998ca4)
Quoted 4 lines
Hi Yoann
Please consider adding this one to the wrynose queue, it is quite similar to
99cab65285so I believe it should be eligible.
Hello,
FYI: Not sure how but the above mail broke threading: https://lore.kernel.org/all/[email protected]/
On the wrynose backport: This needs a blacksail fix as well. I'll consider it for the series after the scarthgap release.
Thanks!
Signature · 2 lines
Yoann Congal Smile ECS