image-hd: gpt: add type GUID shortcut for u-boot-env

U-Boot documents a GPT partition type GUID for U-Boot environment
partitions.

Add a shorthand to make it easier to use.

[1] https://github.com/u-boot/u-boot/blob/v2024.10/doc/README.gpt#L288

Signed-off-by: Brandon Maier <brandon.maier@gmail.com>
This commit is contained in:
Brandon Maier 2024-11-04 14:20:08 -06:00
parent 92cc7c509a
commit 3e0a2aea8d
2 changed files with 2 additions and 0 deletions

View File

@ -150,6 +150,7 @@ Partition options:
* ``F``, ``fat32``: FAT32 / Basic Data Partition (ebd0a0a2-b9e5-4433-87c0-68b6b72699c7)
* ``barebox-state`` (previously ``B``): Barebox State (4778ed65-bf42-45fa-9c5b-287a1dc4aab1)
* ``barebox-env``: Barebox Environment (6c3737f2-07f8-45d1-ad45-15d260aab24d)
* ``u-boot-env``: U-Boot Environment (3de21764-95bd-54bd-a5c3-4abe786f38a8)
Furthermore, for ``{arch}`` being one of ``alpha``,
``arc``, ``arm``, ``arm64``, ``ia64``, ``loongarch64``,

View File

@ -279,6 +279,7 @@ static const struct gpt_partition_type_shortcut_t gpt_partition_type_shortcuts[]
{ "fat32" , "ebd0a0a2-b9e5-4433-87c0-68b6b72699c7" },
{ "barebox-state" , "4778ed65-bf42-45fa-9c5b-287a1dc4aab1" },
{ "barebox-env" , "6c3737f2-07f8-45d1-ad45-15d260aab24d" },
{ "u-boot-env" , "3de21764-95bd-54bd-a5c3-4abe786f38a8" },
/* Discoverable Partitions Specification GUID, see
* https://uapi-group.org/specifications/specs/discoverable_partitions_specification/
*/