diff options
author | Simon Glass <sjg@chromium.org> | 2023-08-24 13:55:44 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-08-25 17:55:19 -0400 |
commit | 966b16c59a70cd2e3383eb77d49c1e62b093b36f (patch) | |
tree | a58e0bbf70f12f40869b764832adcaae17211e02 /lib/uuid.c | |
parent | 831405f41de122c2a3a0908f07c632c87266709a (diff) | |
download | u-boot-966b16c59a70cd2e3383eb77d49c1e62b093b36f.tar.gz u-boot-966b16c59a70cd2e3383eb77d49c1e62b093b36f.tar.bz2 u-boot-966b16c59a70cd2e3383eb77d49c1e62b093b36f.zip |
uuid: Add ChromiumOS partition types
Add some GUIDs for ChromiumOS so we can detect the partitions.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib/uuid.c')
-rw-r--r-- | lib/uuid.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/uuid.c b/lib/uuid.c index 3bdb20b0e5..afb40bff50 100644 --- a/lib/uuid.c +++ b/lib/uuid.c @@ -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; |