diff mbox series

[meta-swupdate,dunfell+,v2,6/6] swupdate-image: new variable image name swu

Message ID 20210907132240.2987302-7-adrian.freihofer@siemens.com
State Changes Requested
Headers show
Series swupdate-common: get do_swuimage vardeps | expand

Commit Message

Adrian Freihofer Sept. 7, 2021, 1:22 p.m. UTC
This new variable is supposed to export the image name to be used in the
sw-description template file.
---
 classes/swupdate-image.bbclass | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/classes/swupdate-image.bbclass b/classes/swupdate-image.bbclass
index 3ff6539..ff52e17 100644
--- a/classes/swupdate-image.bbclass
+++ b/classes/swupdate-image.bbclass
@@ -8,7 +8,6 @@ 
 # The generated output file is an swu archive ready to be uploaded to a device running
 # swupdate.
 
-
 # Define the image type included in the swu file for this image
 IMAGE_FSTYPE_SWU ??= "ext4"
 
@@ -36,6 +35,10 @@  python() {
             d.setVarFlag('SWUPDATE_IMAGES_ENCRYPTED', artifact, '1')
 }
 
+# These variable might be used in the sw-description template like
+# filename = "@@IMAGE_NAME_SWU@@";        (just for the image)
+IMAGE_NAME_SWU ??= "${IMAGE_LINK_NAME}.${IMAGE_FSTYPE_SWU}"
+
 inherit swupdate-common.bbclass
 
 S = "${WORKDIR}/${PN}"