[isar-cip-core][PATCH v3 0/5] Rework image classes
From: Felix Moessbauer <hidden>
Date: 2023-02-10 13:58:06
Changes since v2: - remove unnecessary dependency to template task (it is a dep anyways) Changes since v1: - separation of concerns: do not append to :wic typedep in :swu [1] This series reworks the image classes so that they are fully based on the existing imagetypes infrastructure. Issues with swupdate on non default partition layouts are solved by directly using the underlying image / rootfs variant instead of a fixed wic partition. To support further customizations, an interface is provided to select the type of the rootfs image (e.g. squashfs). The verity class then uses this interface to configure the swu. [1] As we now use the image (e.g. squashfs / verity) directly to create the swu file, we also explicity need that image type (compressed). For wic, we now explicitly have to state the imagetype again, as we copy that into one of the partitions (but this is not an aspect of the swu type). In addition, we cannot simply always add that type to IMAGE_TYPEDEP:wic, as otherwise always a squashfs is built when the swupdate.bbclass is included. One key aspect of the imagetypes is that they are non-intrusive. By that, the classes can always be added and only become into effect when selecting the corresponding type. Best regards, Felix Moessbauer Siemens AG Felix Moessbauer (5): register image classes via layer.conf refactor: use imagetypes for swu generation swu: directly image from squashfs rootfs swupdate: only check partition uuids on swupdate refactor verity image creation classes/swupdate.bbclass | 29 ++++++++++++++++++++-------- classes/verity.bbclass | 7 +------ conf/layer.conf | 2 ++ kas/opt/ebg-secure-boot-snakeoil.yml | 2 +- kas/opt/swupdate.yml | 4 +--- recipes-core/images/swupdate.inc | 20 ------------------- 6 files changed, 26 insertions(+), 38 deletions(-) -- 2.34.1