Message ID | 20250404080122.855379-1-felix.moessbauer@siemens.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [isar-cip-core,1/1] swupdate: add vardep on SWU_HW_COMPAT | expand |
On 04.04.25 10:01, Felix Moessbauer wrote: > The generation of the sw-description file depends on this variable, but > as it is read in a python function, the dependency to its value cannot > be detected by bitbake. We now explicitly add it to the vardeps of the > prefunc, as the transitively called function cannot have vardeps. > > Fixes: ad089e6 ("make name, version and hw-compat available via bb") > Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com> > --- > classes/swupdate.bbclass | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/classes/swupdate.bbclass b/classes/swupdate.bbclass > index 05291ee..61e4fe1 100644 > --- a/classes/swupdate.bbclass > +++ b/classes/swupdate.bbclass > @@ -74,6 +74,7 @@ IMAGE_TEMPLATE_VARS:swu = " \ > # TARGET_IMAGE_UUID needs to be generated before completing the template > addtask transform_template after do_generate_image_uuid > > +do_extend_sw_description[vardeps] += "SWU_HW_COMPAT" > python do_extend_sw_description() { > cmds = d.getVar("SWU_EXTEND_SW_DESCRIPTION") > if cmds is None or not cmds.strip(): Thanks, applied. Jan
diff --git a/classes/swupdate.bbclass b/classes/swupdate.bbclass index 05291ee..61e4fe1 100644 --- a/classes/swupdate.bbclass +++ b/classes/swupdate.bbclass @@ -74,6 +74,7 @@ IMAGE_TEMPLATE_VARS:swu = " \ # TARGET_IMAGE_UUID needs to be generated before completing the template addtask transform_template after do_generate_image_uuid +do_extend_sw_description[vardeps] += "SWU_HW_COMPAT" python do_extend_sw_description() { cmds = d.getVar("SWU_EXTEND_SW_DESCRIPTION") if cmds is None or not cmds.strip():
The generation of the sw-description file depends on this variable, but as it is read in a python function, the dependency to its value cannot be detected by bitbake. We now explicitly add it to the vardeps of the prefunc, as the transitively called function cannot have vardeps. Fixes: ad089e6 ("make name, version and hw-compat available via bb") Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com> --- classes/swupdate.bbclass | 1 + 1 file changed, 1 insertion(+)