diff mbox series

[meta-swupdate,dunfell+,v3,2/2] swupdate-image: use find bitbake variables

Message ID 20210909171657.3804360-3-adrian.freihofer@siemens.com
State Accepted
Headers show
Series swupdate-common: get do_swuimage vardeps | expand

Commit Message

Adrian Freihofer Sept. 9, 2021, 5:16 p.m. UTC
---
 classes/swupdate-image.bbclass | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/classes/swupdate-image.bbclass b/classes/swupdate-image.bbclass
index 618b438..d405fe1 100644
--- a/classes/swupdate-image.bbclass
+++ b/classes/swupdate-image.bbclass
@@ -29,6 +29,10 @@  python do_swupdate_copy_swdescription() {
        bb.fatal("SWUPDATE_IMAGES_FSTYPES[%s] is not set !" % image)
 }
 
-do_swupdate_copy_swdescription[nostamp] = "1"
 addtask swupdate_copy_swdescription before do_image_complete after do_unpack
 addtask swuimage after do_swupdate_copy_swdescription do_image_complete before do_build
+
+# Read all variables from sw-description file and add them to the vardeps of the do_swuimage task. Bitbake
+# cannot know that the do_swuimage task which evaluates the templated sw-description file needs to be executed
+# if a variable which is refered by the sw-description file but not by the recipe itself.
+do_swuimage[vardeps] ?= "${@swupdate_find_bitbake_variables(d)}"