Skip to contentSkip to conversation

image-buildinfo.bbclass: add missing vardeps to buildinfo_target function

PATCH In review Rasmus Villemoes 2 participants 2 messages Nov 11 – Nov 23

lore
Share & tools
lore
#0 lore raw

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.

(cherry picked from commit 69543bcbcebef81e2797a0cf5662602876998ca4)
---
 meta/classes/image-buildinfo.bbclass | 2 ++
 1 file changed, 2 insertions(+)
meta/classes/image-buildinfo.bbclass +2 -0
index b83ce650ad..eded3de719 100644
@@ -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
#1 lore raw
Quoted 20 lines · Rasmus Villemoes
Quoted 10 lines · Rasmus Villemoes via openembedded-core

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.

Quoted 7 lines

Fix that by adding all the ${IMAGE_BUILDINFO_VARS} as [vardeps] for buildinfo_target.

(cherry picked from commit 69543bcbcebef81e2797a0cf5662602876998ca4)
Quoted 4 lines

Hi Yoann

Please consider adding this one to the wrynose queue, it is quite similar to 99cab65285 so 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