mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
uuid: Add ChromiumOS partition types
Add some GUIDs for ChromiumOS so we can detect the partitions. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
831405f41d
commit
966b16c59a
2 changed files with 21 additions and 0 deletions
|
@ -7,6 +7,8 @@
|
|||
* Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
|
||||
*/
|
||||
|
||||
#define LOG_CATEGOT LOGC_CORE
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <efi_api.h>
|
||||
|
@ -61,6 +63,10 @@ static const struct {
|
|||
{"swap", PARTITION_LINUX_SWAP_GUID},
|
||||
{"lvm", PARTITION_LINUX_LVM_GUID},
|
||||
{"u-boot-env", PARTITION_U_BOOT_ENVIRONMENT},
|
||||
{"cros-kern", PARTITION_CROS_KERNEL},
|
||||
{"cros-root", PARTITION_CROS_ROOT},
|
||||
{"cros-fw", PARTITION_CROS_FIRMWARE},
|
||||
{"cros-rsrv", PARTITION_CROS_RESERVED},
|
||||
#endif
|
||||
#if defined(CONFIG_CMD_EFIDEBUG) || defined(CONFIG_EFI)
|
||||
{
|
||||
|
@ -258,6 +264,7 @@ int uuid_str_to_bin(const char *uuid_str, unsigned char *uuid_bin,
|
|||
uint64_t tmp64;
|
||||
|
||||
if (!uuid_str_valid(uuid_str)) {
|
||||
log_debug("not valid\n");
|
||||
#ifdef CONFIG_PARTITION_TYPE_GUID
|
||||
if (!uuid_guid_get_bin(uuid_str, uuid_bin))
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue