]> git.dujemihanovic.xyz Git - u-boot.git/commit
cmd: part: Add partition-related type command
authorEnric Balletbo i Serra <eballetb@redhat.com>
Tue, 10 Jan 2023 16:19:34 +0000 (17:19 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 18 Jan 2023 18:10:41 +0000 (13:10 -0500)
commit22e7f1d108410cc81a0ec5a6481338e4d6e9586e
tree9b75ad847f2e71442a80c4b8b2e4e6649d1c0b5d
parenta685e9c99fb22b37aa5a9c8df235e35384321515
cmd: part: Add partition-related type command

This implements the following command:

    part type mmc 0:1
      -> print partition type UUID
    part type mmc 0:1 uuid
      -> set environment variable to partition type UUID

"part type" can be useful when writing a bootcmd which searches for a
specific partition type to enable automatic discovery of partitions and
their intended usage or mount point.

Signed-off-by: Enric Balletbo i Serra <eballetbo@redhat.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
[trini: Fix when CONFIG_PARTITION_TYPE_GUID is disabled and have the
command check for "types" before "type"]
Signed-off-by: Tom Rini <trini@konsulko.com>
cmd/part.c
doc/usage/cmd/part.rst