[DISK-LAYOUT] Add support for Sysdata and double slot
The new layout is designed to accommodate additional requirements, including:
- SysData partition;
- Reduntant slot partitions
At first, the concept of slot as been introduced. The existing variable:
WKS_BOOTFS_ROOTFS_PARTITION_LAYOUT_LIST
has been repalced with
WKS_BASIC_SLOT_PARTITION_LAYOUT_LIST
This new variable defines the list of partitions that make up a slot. A slot represents a portion of the system image (typically including bootfs and rootfs) that can be duplicated to provide redundancy (e.g., for OTA updates). Currently, only a single main slot is defined. However, the design allows for additional slots to be added in the future.
Consequently also the variable
WKS_BOOTFS_ROOTFS_PARTITION_LAYOUT
has been replaced with
WKS_SLOT_PARTITION_LAYOUT
This variable handles the duplication mechanism. If the DISTRO_FEATURES contains
redundant-slot,
then WKS_BASIC_SLOT_PARTITION_LAYOUT_LIST is included twice in the layout to provide redundancy.
An similar logic has been used to provide the way to add SysData partition inside the disk layout: a new kind of partition set has been introduced:
WKS_SYSTEM_BOOT_PARTITION_LAYOUT
This last is similar to the already present WKS_MACHINE_BOOT_PARTITION_LAYOUT, where there is no longer a dependency to the specific used MACHINE but instead there is a SYSTEM dependency.
To enable the SysData partition inside this set, the following DISTRO_FEATURES has to be set:
sysdata
JIRA Reference:[CLEAOS-649]
Signed-off-by: default avatarDavide Cardillo davide.cardillo@seco.com