disk: part_efi: parse and store partition UUID
Each EFI partition table entry contains a UUID. Extend U-Boot's struct disk_partition to be able to store this information, and modify get_partition_info_efi() to fill it in. The implementation of uuid_string() was derived from the Linux kernel, tag v3.6-rc4 file lib/vsprintf.c function uuid_string(). Signed-off-by: Stephen Warren <swarren@nvidia.com>
This commit is contained in:
@@ -391,6 +391,11 @@ int get_partition_info(block_dev_desc_t *dev_desc, int part
|
||||
defined(CONFIG_MMC) || \
|
||||
defined(CONFIG_SYSTEMACE)
|
||||
|
||||
#ifdef CONFIG_PARTITION_UUIDS
|
||||
/* The common case is no UUID support */
|
||||
info->uuid[0] = 0;
|
||||
#endif
|
||||
|
||||
switch (dev_desc->part_type) {
|
||||
#ifdef CONFIG_MAC_PARTITION
|
||||
case PART_TYPE_MAC:
|
||||
|
||||
Reference in New Issue
Block a user