Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Jason Hobbs | e11938e | 2011-08-23 11:06:56 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Copyright 2011 Calxeda, Inc. |
Jason Hobbs | e11938e | 2011-08-23 11:06:56 +0000 | [diff] [blame] | 4 | */ |
| 5 | |
Przemyslaw Marczak | 89c8230 | 2014-04-02 10:20:05 +0200 | [diff] [blame] | 6 | #include <common.h> |
Simon Glass | 9fb625c | 2019-08-01 09:46:51 -0600 | [diff] [blame] | 7 | #include <env.h> |
Simon Glass | 90526e9 | 2020-05-10 11:39:56 -0600 | [diff] [blame^] | 8 | #include <rand.h> |
Simon Glass | 1045315 | 2019-11-14 12:57:30 -0700 | [diff] [blame] | 9 | #include <time.h> |
Simon Glass | ba06b3c | 2020-05-10 11:39:52 -0600 | [diff] [blame] | 10 | #include <uuid.h> |
Jason Hobbs | e11938e | 2011-08-23 11:06:56 +0000 | [diff] [blame] | 11 | #include <linux/ctype.h> |
Przemyslaw Marczak | a96a0e6 | 2014-04-02 10:20:02 +0200 | [diff] [blame] | 12 | #include <errno.h> |
| 13 | #include <common.h> |
Przemyslaw Marczak | d718ded | 2014-04-02 10:20:03 +0200 | [diff] [blame] | 14 | #include <asm/io.h> |
| 15 | #include <part_efi.h> |
| 16 | #include <malloc.h> |
Jason Hobbs | e11938e | 2011-08-23 11:06:56 +0000 | [diff] [blame] | 17 | |
| 18 | /* |
Przemyslaw Marczak | a96a0e6 | 2014-04-02 10:20:02 +0200 | [diff] [blame] | 19 | * UUID - Universally Unique IDentifier - 128 bits unique number. |
| 20 | * There are 5 versions and one variant of UUID defined by RFC4122 |
Przemyslaw Marczak | 4e4815f | 2014-04-02 10:20:04 +0200 | [diff] [blame] | 21 | * specification. A UUID contains a set of fields. The set varies |
| 22 | * depending on the version of the UUID, as shown below: |
| 23 | * - time, MAC address(v1), |
| 24 | * - user ID(v2), |
| 25 | * - MD5 of name or URL(v3), |
| 26 | * - random data(v4), |
| 27 | * - SHA-1 of name or URL(v5), |
| 28 | * |
| 29 | * Layout of UUID: |
| 30 | * timestamp - 60-bit: time_low, time_mid, time_hi_and_version |
| 31 | * version - 4 bit (bit 4 through 7 of the time_hi_and_version) |
| 32 | * clock seq - 14 bit: clock_seq_hi_and_reserved, clock_seq_low |
| 33 | * variant: - bit 6 and 7 of clock_seq_hi_and_reserved |
| 34 | * node - 48 bit |
| 35 | * |
| 36 | * source: https://www.ietf.org/rfc/rfc4122.txt |
Jason Hobbs | e11938e | 2011-08-23 11:06:56 +0000 | [diff] [blame] | 37 | * |
Przemyslaw Marczak | a96a0e6 | 2014-04-02 10:20:02 +0200 | [diff] [blame] | 38 | * UUID binary format (16 bytes): |
| 39 | * |
| 40 | * 4B-2B-2B-2B-6B (big endian - network byte order) |
| 41 | * |
| 42 | * UUID string is 36 length of characters (36 bytes): |
Jason Hobbs | e11938e | 2011-08-23 11:06:56 +0000 | [diff] [blame] | 43 | * |
| 44 | * 0 9 14 19 24 |
| 45 | * xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx |
Przemyslaw Marczak | a96a0e6 | 2014-04-02 10:20:02 +0200 | [diff] [blame] | 46 | * be be be be be |
| 47 | * |
| 48 | * where x is a hexadecimal character. Fields are separated by '-'s. |
| 49 | * When converting to a binary UUID, le means the field should be converted |
| 50 | * to little endian and be means it should be converted to big endian. |
| 51 | * |
| 52 | * UUID is also used as GUID (Globally Unique Identifier) with the same binary |
| 53 | * format but it differs in string format like below. |
| 54 | * |
| 55 | * GUID: |
| 56 | * 0 9 14 19 24 |
| 57 | * xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx |
Jason Hobbs | e11938e | 2011-08-23 11:06:56 +0000 | [diff] [blame] | 58 | * le le le be be |
Przemyslaw Marczak | a96a0e6 | 2014-04-02 10:20:02 +0200 | [diff] [blame] | 59 | * |
| 60 | * GUID is used e.g. in GPT (GUID Partition Table) as a partiions unique id. |
Jason Hobbs | e11938e | 2011-08-23 11:06:56 +0000 | [diff] [blame] | 61 | */ |
Jason Hobbs | e11938e | 2011-08-23 11:06:56 +0000 | [diff] [blame] | 62 | int uuid_str_valid(const char *uuid) |
| 63 | { |
| 64 | int i, valid; |
| 65 | |
| 66 | if (uuid == NULL) |
| 67 | return 0; |
| 68 | |
| 69 | for (i = 0, valid = 1; uuid[i] && valid; i++) { |
| 70 | switch (i) { |
| 71 | case 8: case 13: case 18: case 23: |
| 72 | valid = (uuid[i] == '-'); |
| 73 | break; |
| 74 | default: |
| 75 | valid = isxdigit(uuid[i]); |
| 76 | break; |
| 77 | } |
| 78 | } |
| 79 | |
Przemyslaw Marczak | d718ded | 2014-04-02 10:20:03 +0200 | [diff] [blame] | 80 | if (i != UUID_STR_LEN || !valid) |
Jason Hobbs | e11938e | 2011-08-23 11:06:56 +0000 | [diff] [blame] | 81 | return 0; |
| 82 | |
| 83 | return 1; |
| 84 | } |
| 85 | |
Patrick Delaunay | bcb41dc | 2015-10-27 11:00:28 +0100 | [diff] [blame] | 86 | #ifdef CONFIG_PARTITION_TYPE_GUID |
| 87 | static const struct { |
| 88 | const char *string; |
| 89 | efi_guid_t guid; |
| 90 | } list_guid[] = { |
| 91 | {"system", PARTITION_SYSTEM_GUID}, |
| 92 | {"mbr", LEGACY_MBR_PARTITION_GUID}, |
| 93 | {"msft", PARTITION_MSFT_RESERVED_GUID}, |
| 94 | {"data", PARTITION_BASIC_DATA_GUID}, |
| 95 | {"linux", PARTITION_LINUX_FILE_SYSTEM_DATA_GUID}, |
| 96 | {"raid", PARTITION_LINUX_RAID_GUID}, |
| 97 | {"swap", PARTITION_LINUX_SWAP_GUID}, |
| 98 | {"lvm", PARTITION_LINUX_LVM_GUID} |
| 99 | }; |
| 100 | |
| 101 | /* |
| 102 | * uuid_guid_get_bin() - this function get GUID bin for string |
| 103 | * |
| 104 | * @param guid_str - pointer to partition type string |
| 105 | * @param guid_bin - pointer to allocated array for big endian output [16B] |
| 106 | */ |
| 107 | int uuid_guid_get_bin(const char *guid_str, unsigned char *guid_bin) |
| 108 | { |
| 109 | int i; |
| 110 | |
| 111 | for (i = 0; i < ARRAY_SIZE(list_guid); i++) { |
| 112 | if (!strcmp(list_guid[i].string, guid_str)) { |
| 113 | memcpy(guid_bin, &list_guid[i].guid, 16); |
| 114 | return 0; |
| 115 | } |
| 116 | } |
| 117 | return -ENODEV; |
| 118 | } |
| 119 | |
| 120 | /* |
| 121 | * uuid_guid_get_str() - this function get string for GUID. |
| 122 | * |
| 123 | * @param guid_bin - pointer to string with partition type guid [16B] |
| 124 | * @param guid_str - pointer to allocated partition type string [7B] |
| 125 | */ |
Simon Glass | 2c2ca20 | 2020-04-08 08:32:58 -0600 | [diff] [blame] | 126 | int uuid_guid_get_str(const unsigned char *guid_bin, char *guid_str) |
Patrick Delaunay | bcb41dc | 2015-10-27 11:00:28 +0100 | [diff] [blame] | 127 | { |
| 128 | int i; |
| 129 | |
| 130 | *guid_str = 0; |
| 131 | for (i = 0; i < ARRAY_SIZE(list_guid); i++) { |
| 132 | if (!memcmp(list_guid[i].guid.b, guid_bin, 16)) { |
| 133 | strcpy(guid_str, list_guid[i].string); |
| 134 | return 0; |
| 135 | } |
| 136 | } |
| 137 | return -ENODEV; |
| 138 | } |
| 139 | #endif |
| 140 | |
Przemyslaw Marczak | d718ded | 2014-04-02 10:20:03 +0200 | [diff] [blame] | 141 | /* |
| 142 | * uuid_str_to_bin() - convert string UUID or GUID to big endian binary data. |
| 143 | * |
Patrick Delaunay | bcb41dc | 2015-10-27 11:00:28 +0100 | [diff] [blame] | 144 | * @param uuid_str - pointer to UUID or GUID string [37B] or GUID shorcut |
Przemyslaw Marczak | d718ded | 2014-04-02 10:20:03 +0200 | [diff] [blame] | 145 | * @param uuid_bin - pointer to allocated array for big endian output [16B] |
| 146 | * @str_format - UUID string format: 0 - UUID; 1 - GUID |
| 147 | */ |
Simon Glass | 2c2ca20 | 2020-04-08 08:32:58 -0600 | [diff] [blame] | 148 | int uuid_str_to_bin(const char *uuid_str, unsigned char *uuid_bin, |
| 149 | int str_format) |
Jason Hobbs | e11938e | 2011-08-23 11:06:56 +0000 | [diff] [blame] | 150 | { |
| 151 | uint16_t tmp16; |
| 152 | uint32_t tmp32; |
| 153 | uint64_t tmp64; |
| 154 | |
Patrick Delaunay | bcb41dc | 2015-10-27 11:00:28 +0100 | [diff] [blame] | 155 | if (!uuid_str_valid(uuid_str)) { |
| 156 | #ifdef CONFIG_PARTITION_TYPE_GUID |
| 157 | if (!uuid_guid_get_bin(uuid_str, uuid_bin)) |
| 158 | return 0; |
| 159 | #endif |
Przemyslaw Marczak | a96a0e6 | 2014-04-02 10:20:02 +0200 | [diff] [blame] | 160 | return -EINVAL; |
Patrick Delaunay | bcb41dc | 2015-10-27 11:00:28 +0100 | [diff] [blame] | 161 | } |
Przemyslaw Marczak | a96a0e6 | 2014-04-02 10:20:02 +0200 | [diff] [blame] | 162 | |
Przemyslaw Marczak | d718ded | 2014-04-02 10:20:03 +0200 | [diff] [blame] | 163 | if (str_format == UUID_STR_FORMAT_STD) { |
| 164 | tmp32 = cpu_to_be32(simple_strtoul(uuid_str, NULL, 16)); |
| 165 | memcpy(uuid_bin, &tmp32, 4); |
Jason Hobbs | e11938e | 2011-08-23 11:06:56 +0000 | [diff] [blame] | 166 | |
Przemyslaw Marczak | d718ded | 2014-04-02 10:20:03 +0200 | [diff] [blame] | 167 | tmp16 = cpu_to_be16(simple_strtoul(uuid_str + 9, NULL, 16)); |
| 168 | memcpy(uuid_bin + 4, &tmp16, 2); |
Jason Hobbs | e11938e | 2011-08-23 11:06:56 +0000 | [diff] [blame] | 169 | |
Przemyslaw Marczak | d718ded | 2014-04-02 10:20:03 +0200 | [diff] [blame] | 170 | tmp16 = cpu_to_be16(simple_strtoul(uuid_str + 14, NULL, 16)); |
| 171 | memcpy(uuid_bin + 6, &tmp16, 2); |
| 172 | } else { |
| 173 | tmp32 = cpu_to_le32(simple_strtoul(uuid_str, NULL, 16)); |
| 174 | memcpy(uuid_bin, &tmp32, 4); |
Jason Hobbs | e11938e | 2011-08-23 11:06:56 +0000 | [diff] [blame] | 175 | |
Przemyslaw Marczak | d718ded | 2014-04-02 10:20:03 +0200 | [diff] [blame] | 176 | tmp16 = cpu_to_le16(simple_strtoul(uuid_str + 9, NULL, 16)); |
| 177 | memcpy(uuid_bin + 4, &tmp16, 2); |
Jason Hobbs | e11938e | 2011-08-23 11:06:56 +0000 | [diff] [blame] | 178 | |
Przemyslaw Marczak | d718ded | 2014-04-02 10:20:03 +0200 | [diff] [blame] | 179 | tmp16 = cpu_to_le16(simple_strtoul(uuid_str + 14, NULL, 16)); |
| 180 | memcpy(uuid_bin + 6, &tmp16, 2); |
| 181 | } |
Jason Hobbs | e11938e | 2011-08-23 11:06:56 +0000 | [diff] [blame] | 182 | |
Przemyslaw Marczak | d718ded | 2014-04-02 10:20:03 +0200 | [diff] [blame] | 183 | tmp16 = cpu_to_be16(simple_strtoul(uuid_str + 19, NULL, 16)); |
| 184 | memcpy(uuid_bin + 8, &tmp16, 2); |
| 185 | |
| 186 | tmp64 = cpu_to_be64(simple_strtoull(uuid_str + 24, NULL, 16)); |
| 187 | memcpy(uuid_bin + 10, (char *)&tmp64 + 2, 6); |
Przemyslaw Marczak | a96a0e6 | 2014-04-02 10:20:02 +0200 | [diff] [blame] | 188 | |
| 189 | return 0; |
| 190 | } |
| 191 | |
Przemyslaw Marczak | d718ded | 2014-04-02 10:20:03 +0200 | [diff] [blame] | 192 | /* |
| 193 | * uuid_bin_to_str() - convert big endian binary data to string UUID or GUID. |
| 194 | * |
Heinrich Schuchardt | 3bad256 | 2019-04-29 08:08:43 +0200 | [diff] [blame] | 195 | * @param uuid_bin: pointer to binary data of UUID (big endian) [16B] |
| 196 | * @param uuid_str: pointer to allocated array for output string [37B] |
| 197 | * @str_format: bit 0: 0 - UUID; 1 - GUID |
| 198 | * bit 1: 0 - lower case; 2 - upper case |
Przemyslaw Marczak | d718ded | 2014-04-02 10:20:03 +0200 | [diff] [blame] | 199 | */ |
Simon Glass | 2c2ca20 | 2020-04-08 08:32:58 -0600 | [diff] [blame] | 200 | void uuid_bin_to_str(const unsigned char *uuid_bin, char *uuid_str, |
| 201 | int str_format) |
Przemyslaw Marczak | a96a0e6 | 2014-04-02 10:20:02 +0200 | [diff] [blame] | 202 | { |
Przemyslaw Marczak | d718ded | 2014-04-02 10:20:03 +0200 | [diff] [blame] | 203 | const u8 uuid_char_order[UUID_BIN_LEN] = {0, 1, 2, 3, 4, 5, 6, 7, 8, |
| 204 | 9, 10, 11, 12, 13, 14, 15}; |
| 205 | const u8 guid_char_order[UUID_BIN_LEN] = {3, 2, 1, 0, 5, 4, 7, 6, 8, |
| 206 | 9, 10, 11, 12, 13, 14, 15}; |
| 207 | const u8 *char_order; |
Heinrich Schuchardt | 3bad256 | 2019-04-29 08:08:43 +0200 | [diff] [blame] | 208 | const char *format; |
Przemyslaw Marczak | a96a0e6 | 2014-04-02 10:20:02 +0200 | [diff] [blame] | 209 | int i; |
| 210 | |
Przemyslaw Marczak | d718ded | 2014-04-02 10:20:03 +0200 | [diff] [blame] | 211 | /* |
| 212 | * UUID and GUID bin data - always in big endian: |
| 213 | * 4B-2B-2B-2B-6B |
| 214 | * be be be be be |
| 215 | */ |
Heinrich Schuchardt | 3bad256 | 2019-04-29 08:08:43 +0200 | [diff] [blame] | 216 | if (str_format & UUID_STR_FORMAT_GUID) |
Przemyslaw Marczak | d718ded | 2014-04-02 10:20:03 +0200 | [diff] [blame] | 217 | char_order = guid_char_order; |
Heinrich Schuchardt | 3bad256 | 2019-04-29 08:08:43 +0200 | [diff] [blame] | 218 | else |
| 219 | char_order = uuid_char_order; |
| 220 | if (str_format & UUID_STR_UPPER_CASE) |
| 221 | format = "%02X"; |
| 222 | else |
| 223 | format = "%02x"; |
Przemyslaw Marczak | d718ded | 2014-04-02 10:20:03 +0200 | [diff] [blame] | 224 | |
Przemyslaw Marczak | a96a0e6 | 2014-04-02 10:20:02 +0200 | [diff] [blame] | 225 | for (i = 0; i < 16; i++) { |
Heinrich Schuchardt | 3bad256 | 2019-04-29 08:08:43 +0200 | [diff] [blame] | 226 | sprintf(uuid_str, format, uuid_bin[char_order[i]]); |
Przemyslaw Marczak | d718ded | 2014-04-02 10:20:03 +0200 | [diff] [blame] | 227 | uuid_str += 2; |
Przemyslaw Marczak | a96a0e6 | 2014-04-02 10:20:02 +0200 | [diff] [blame] | 228 | switch (i) { |
| 229 | case 3: |
| 230 | case 5: |
| 231 | case 7: |
| 232 | case 9: |
Przemyslaw Marczak | d718ded | 2014-04-02 10:20:03 +0200 | [diff] [blame] | 233 | *uuid_str++ = '-'; |
Przemyslaw Marczak | a96a0e6 | 2014-04-02 10:20:02 +0200 | [diff] [blame] | 234 | break; |
| 235 | } |
| 236 | } |
Jason Hobbs | e11938e | 2011-08-23 11:06:56 +0000 | [diff] [blame] | 237 | } |
Przemyslaw Marczak | 4e4815f | 2014-04-02 10:20:04 +0200 | [diff] [blame] | 238 | |
| 239 | /* |
| 240 | * gen_rand_uuid() - this function generates a random binary UUID version 4. |
| 241 | * In this version all fields beside 4 bits of version and |
| 242 | * 2 bits of variant are randomly generated. |
| 243 | * |
| 244 | * @param uuid_bin - pointer to allocated array [16B]. Output is in big endian. |
| 245 | */ |
Przemyslaw Marczak | 89c8230 | 2014-04-02 10:20:05 +0200 | [diff] [blame] | 246 | #if defined(CONFIG_RANDOM_UUID) || defined(CONFIG_CMD_UUID) |
Przemyslaw Marczak | 4e4815f | 2014-04-02 10:20:04 +0200 | [diff] [blame] | 247 | void gen_rand_uuid(unsigned char *uuid_bin) |
| 248 | { |
Heinrich Schuchardt | a1b633d | 2019-07-14 23:31:50 +0200 | [diff] [blame] | 249 | u32 ptr[4]; |
| 250 | struct uuid *uuid = (struct uuid *)ptr; |
Przemyslaw Marczak | 4e4815f | 2014-04-02 10:20:04 +0200 | [diff] [blame] | 251 | int i; |
| 252 | |
Eugeniu Rosca | 4ccf678 | 2019-05-02 14:27:06 +0200 | [diff] [blame] | 253 | srand(get_ticks() + rand()); |
| 254 | |
Przemyslaw Marczak | 4e4815f | 2014-04-02 10:20:04 +0200 | [diff] [blame] | 255 | /* Set all fields randomly */ |
Heinrich Schuchardt | a1b633d | 2019-07-14 23:31:50 +0200 | [diff] [blame] | 256 | for (i = 0; i < 4; i++) |
| 257 | ptr[i] = rand(); |
Przemyslaw Marczak | 4e4815f | 2014-04-02 10:20:04 +0200 | [diff] [blame] | 258 | |
Heinrich Schuchardt | a1b633d | 2019-07-14 23:31:50 +0200 | [diff] [blame] | 259 | clrsetbits_be16(&uuid->time_hi_and_version, |
Przemyslaw Marczak | 4e4815f | 2014-04-02 10:20:04 +0200 | [diff] [blame] | 260 | UUID_VERSION_MASK, |
| 261 | UUID_VERSION << UUID_VERSION_SHIFT); |
| 262 | |
Heinrich Schuchardt | a1b633d | 2019-07-14 23:31:50 +0200 | [diff] [blame] | 263 | clrsetbits_8(&uuid->clock_seq_hi_and_reserved, |
Przemyslaw Marczak | 4e4815f | 2014-04-02 10:20:04 +0200 | [diff] [blame] | 264 | UUID_VARIANT_MASK, |
| 265 | UUID_VARIANT << UUID_VARIANT_SHIFT); |
| 266 | |
Heinrich Schuchardt | a1b633d | 2019-07-14 23:31:50 +0200 | [diff] [blame] | 267 | memcpy(uuid_bin, uuid, 16); |
Przemyslaw Marczak | 4e4815f | 2014-04-02 10:20:04 +0200 | [diff] [blame] | 268 | } |
| 269 | |
| 270 | /* |
| 271 | * gen_rand_uuid_str() - this function generates UUID v4 (random) in two string |
| 272 | * formats UUID or GUID. |
| 273 | * |
| 274 | * @param uuid_str - pointer to allocated array [37B]. |
| 275 | * @param - uuid output type: UUID - 0, GUID - 1 |
| 276 | */ |
| 277 | void gen_rand_uuid_str(char *uuid_str, int str_format) |
| 278 | { |
| 279 | unsigned char uuid_bin[UUID_BIN_LEN]; |
| 280 | |
| 281 | /* Generate UUID (big endian) */ |
| 282 | gen_rand_uuid(uuid_bin); |
| 283 | |
| 284 | /* Convert UUID bin to UUID or GUID formated STRING */ |
| 285 | uuid_bin_to_str(uuid_bin, uuid_str, str_format); |
| 286 | } |
Przemyslaw Marczak | 89c8230 | 2014-04-02 10:20:05 +0200 | [diff] [blame] | 287 | |
Marek Vasut | 05f6da3 | 2019-01-07 21:23:38 +0100 | [diff] [blame] | 288 | #if !defined(CONFIG_SPL_BUILD) && defined(CONFIG_CMD_UUID) |
Przemyslaw Marczak | 89c8230 | 2014-04-02 10:20:05 +0200 | [diff] [blame] | 289 | int do_uuid(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) |
| 290 | { |
| 291 | char uuid[UUID_STR_LEN + 1]; |
| 292 | int str_format; |
| 293 | |
| 294 | if (!strcmp(argv[0], "uuid")) |
| 295 | str_format = UUID_STR_FORMAT_STD; |
| 296 | else |
| 297 | str_format = UUID_STR_FORMAT_GUID; |
| 298 | |
| 299 | if (argc > 2) |
| 300 | return CMD_RET_USAGE; |
| 301 | |
| 302 | gen_rand_uuid_str(uuid, str_format); |
| 303 | |
| 304 | if (argc == 1) |
| 305 | printf("%s\n", uuid); |
| 306 | else |
Simon Glass | 382bee5 | 2017-08-03 12:22:09 -0600 | [diff] [blame] | 307 | env_set(argv[1], uuid); |
Przemyslaw Marczak | 89c8230 | 2014-04-02 10:20:05 +0200 | [diff] [blame] | 308 | |
| 309 | return CMD_RET_SUCCESS; |
| 310 | } |
| 311 | |
| 312 | U_BOOT_CMD(uuid, CONFIG_SYS_MAXARGS, 1, do_uuid, |
| 313 | "UUID - generate random Universally Unique Identifier", |
| 314 | "[<varname>]\n" |
| 315 | "Argument:\n" |
| 316 | "varname: for set result in a environment variable\n" |
| 317 | "e.g. uuid uuid_env" |
| 318 | ); |
| 319 | |
| 320 | U_BOOT_CMD(guid, CONFIG_SYS_MAXARGS, 1, do_uuid, |
| 321 | "GUID - generate Globally Unique Identifier based on random UUID", |
| 322 | "[<varname>]\n" |
| 323 | "Argument:\n" |
| 324 | "varname: for set result in a environment variable\n" |
| 325 | "e.g. guid guid_env" |
| 326 | ); |
Przemyslaw Marczak | 3920638 | 2014-04-02 10:20:06 +0200 | [diff] [blame] | 327 | #endif /* CONFIG_CMD_UUID */ |
| 328 | #endif /* CONFIG_RANDOM_UUID || CONFIG_CMD_UUID */ |