feat(partition): make provision to store partition GUID value

The FWU multi bank feature supports multiple partitions or banks of
firmware components, where a platform can support having an active and
a backup partition(bank) of firmware images to boot from. This feature
identifies the images in a given bank using image GUID's --
this GUID value corresponds to the UniquePartitionGUID value used to
uniquely identify a GPT partition.

To support identification of images, add a member to the
partition_entry structure to store the UniquePartitionGUID value of
the GPT partition entry. This value is subsequently used to select the
firmware image to boot in a multi partition setup.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Change-Id: I2d235467ce7a7f20ebc1cef4db09924a5282e714
This commit is contained in:
Sughosh Ganu 2021-07-02 16:22:55 +05:30
parent 2029f93009
commit 938e8a500a
1 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,7 @@
#include <lib/cassert.h>
#include <drivers/partition/efi.h>
#include <tools_share/uuid.h>
#if !PLAT_PARTITION_MAX_ENTRIES
# define PLAT_PARTITION_MAX_ENTRIES 128
@ -32,6 +33,7 @@ typedef struct partition_entry {
uint64_t start;
uint64_t length;
char name[EFI_NAMELEN];
struct efi_guid part_guid;
} partition_entry_t;
typedef struct partition_entry_list {