kas/opt/swupdate: Change assignment of IMAGE_TYPE and WKS_FILE

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]: #14

Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
26 jobs for next in 55 minutes and 13 seconds (queued for 49 seconds)
Status Name Job ID Coverage
  Build
passed build:bbb-base #1646071032
large

00:27:06

passed build:bbb-bullseye #1646071069
large

00:26:12

passed build:bbb-test #1646071050
large

00:29:30

passed build:hihope-rzg2m-base #1646071037
large

00:23:31

passed build:hihope-rzg2m-bullseye #1646071076
large

00:28:17

passed build:hihope-rzg2m-test #1646071054
large

00:26:29

passed build:iwg20m-base #1646226918
large

00:10:30

passed build:iwg20m-bullseye #1646268012
large

00:11:05

passed build:iwg20m-test #1646071052
large

00:25:55

passed build:qemu-amd64-base #1646262613
large

00:07:37

passed build:qemu-amd64-secure-boot #1646071061
large

00:20:45

failed build:qemu-amd64-secure-boot-swu #1646262767
large

00:08:32

passed build:qemu-amd64-swupdate #1646071063
large

00:21:30

passed build:qemu-amd64-test #1646071056
large

00:20:07

passed build:qemu-arm-base #1646071046
large

00:28:56

passed build:qemu-arm-test #1646071059
large

00:25:35

passed build:qemu-arm64-base #1646071043
large

00:32:30

passed build:qemu-arm64-test #1646071057
large

00:30:29

passed build:simatic-ipc227e-base #1646071029
large

00:21:38

passed build:simatic-ipc227e-bullseye #1646071068
large

00:26:51

passed build:simatic-ipc227e-test #1646071048
large

00:24:46

failed build:iwg20m-base #1646071035
large

00:07:38

canceled build:iwg20m-bullseye #1646262024
large

failed build:iwg20m-bullseye #1646071072
large

00:08:03

failed build:qemu-amd64-base #1646071040
large

00:04:00

failed build:qemu-amd64-secure-boot-swu #1646071065
large

00:21:37

 
Name Stage Failure
failed
build:qemu-amd64-secure-boot-swu Build
img4.gz
205468 blocks
WARNING: exit code 2 from a shell command.

ERROR: Logfile of failure stored in: /builds/ryfx8CHZ/2/cip-project/cip-core/isar-cip-core/build/tmp/work/cip-core-buster-amd64/cip-core-image-qemu-amd64-wic-swu-img/1.0-r0/temp/log.do_swupdate_image.95071
ERROR: Task (/builds/ryfx8CHZ/2/cip-project/cip-core/isar-cip-core/recipes-core/images/cip-core-image.bb:do_swupdate_image) failed with exit code '1'

Cleaning up file based variables
ERROR: Job failed: command terminated with exit code 1