diff mbox series

[isar-cip-core,1/5] swupdate: Avoid open-coding IMAGE_FULLNAME

Message ID 4b6435e74e0d9d396ff75e9a834715f4a3011f7f.1677789054.git.jan.kiszka@siemens.com (mailing list archive)
State Accepted
Headers show
Series Enable feature combinations of test and security extensions | expand

Commit Message

Jan Kiszka March 2, 2023, 8:30 p.m. UTC
From: Jan Kiszka <jan.kiszka@siemens.com>

This will break if IMAGE_FULLNAME is not PN-DISTRO-MACHINE, e.g. when
enabling kas/ops/test.yml.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 classes/swupdate.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/classes/swupdate.bbclass b/classes/swupdate.bbclass
index 9fcaf3c2..064d0ad5 100644
--- a/classes/swupdate.bbclass
+++ b/classes/swupdate.bbclass
@@ -15,7 +15,7 @@  SWU_ROOTFS_NAME ?= "${IMAGE_FULLNAME}"
 SWU_COMPRESSION_TYPE ?= "zlib"
 SWU_ROOTFS_PARTITION_NAME ?= "${SWU_ROOTFS_NAME}.${SWU_ROOTFS_TYPE}.${@get_swu_compression_type(d)}"
 
-SWU_IMAGE_FILE ?= "${DEPLOY_DIR_IMAGE}/${PN}-${DISTRO}-${MACHINE}.swu"
+SWU_IMAGE_FILE ?= "${DEPLOY_DIR_IMAGE}/${IMAGE_FULLNAME}.swu"
 SWU_DESCRIPTION_FILE ?= "sw-description"
 SWU_ADDITIONAL_FILES ?= "linux.efi ${SWU_ROOTFS_PARTITION_NAME}"
 SWU_SIGNED ?= ""