From 3e0a2aea8d10431f8c8f652129f73544cfa16af2 Mon Sep 17 00:00:00 2001 From: Brandon Maier Date: Mon, 4 Nov 2024 14:20:08 -0600 Subject: [PATCH] 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 --- README.rst | 1 + image-hd.c | 1 + 2 files changed, 2 insertions(+) diff --git a/README.rst b/README.rst index 2ba3087..0e26074 100644 --- a/README.rst +++ b/README.rst @@ -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``, diff --git a/image-hd.c b/image-hd.c index 5658c50..5839154 100644 --- a/image-hd.c +++ b/image-hd.c @@ -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/ */