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
diff --git a/include/drivers/partition/partition.h b/include/drivers/partition/partition.h
index 3ec6fa3..cd1a95b 100644
--- a/include/drivers/partition/partition.h
+++ b/include/drivers/partition/partition.h
@@ -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 @@
uint64_t start;
uint64_t length;
char name[EFI_NAMELEN];
+ struct efi_guid part_guid;
} partition_entry_t;
typedef struct partition_entry_list {