]> git.baikalelectronics.ru Git - uboot.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)
commiteae403d6925a90b19c7cc05b5a397fe3fe841c52
tree9b75ad847f2e71442a80c4b8b2e4e6649d1c0b5d
parentbff891f3e143e594d070e3319bf02157847c0c5d
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