Re: [PATCH v2] kas/opt/swupdate: Change assignment of IMAGE_TYPE and WKS_FILE


Jan Kiszka
 

On 04.10.21 15:27, Q. Gylstorff wrote:
From: Quirin Gylstorff <quirin.gylstorff@...>

Replace the default assignment to ensure the generation of the
swu file. As stated in [1]: If multiple `?=` assignments are used
the first of those assignments ends up getting used.

This fixes [2].

[1]: https://docs.yoctoproject.org/bitbake/bitbake-user-manual/bitbake-user-manual-metadata.html#setting-a-default-value
[2]: https://gitlab.com/cip-project/cip-core/isar-cip-core/-/issues/14

Signed-off-by: Quirin Gylstorff <quirin.gylstorff@...>
---
kas/opt/swupdate.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kas/opt/swupdate.yml b/kas/opt/swupdate.yml
index 7d86ad5..bd0f6e4 100644
--- a/kas/opt/swupdate.yml
+++ b/kas/opt/swupdate.yml
@@ -19,5 +19,5 @@ local_conf_header:
IMAGE_INSTALL_append = " swupdate"

wic-swu: |
- IMAGE_TYPE ?= "wic-swu-img"
+ IMAGE_TYPE = "wic-swu-img"
WKS_FILE ?= "${MACHINE}-${SWUPDATE_BOOTLOADER}.wks"
Thanks, replaced v1 with this in next.

Jan

--
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux

Join {cip-dev@lists.cip-project.org to automatically receive all group messages.