diff mbox series

[isar-cip-core,1/1] swupdate: add vardep on SWU_HW_COMPAT

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

Commit Message

Felix Moessbauer April 4, 2025, 8:01 a.m. UTC
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(+)

Comments

Jan Kiszka April 7, 2025, 11:28 a.m. UTC | #1
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 mbox series

Patch

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():