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.
Signed-off-by Rasmus Villemoes <[email protected]>
--- 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