diff options
author | Stephen Warren <swarren@nvidia.com> | 2012-09-21 09:50:59 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2012-09-25 15:05:44 -0700 |
commit | 894bfbbfb772de2f8640f91aee322f3cb2577cb7 (patch) | |
tree | e75c671a8826b41d81059227868d0ef86b4557de /disk/part.c | |
parent | c04d68c69458526d30bd542ff2f8f83cc20ccfc5 (diff) | |
download | u-boot-imx-894bfbbfb772de2f8640f91aee322f3cb2577cb7.zip u-boot-imx-894bfbbfb772de2f8640f91aee322f3cb2577cb7.tar.gz u-boot-imx-894bfbbfb772de2f8640f91aee322f3cb2577cb7.tar.bz2 |
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>
Diffstat (limited to 'disk/part.c')
-rw-r--r-- | disk/part.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/disk/part.c b/disk/part.c index 0dd4b0f..64d76e8 100644 --- a/disk/part.c +++ b/disk/part.c @@ -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: |