cmd: part: Cover both part type entries with GUID ifdef

The 'part type' subcommand depends on GUID partition table support.
The help text exposes one of two 'part type' subcommand entries,
hide both in case GUID partition table support is not enabled to
avoid confusing users.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Marek Vasut 2023-12-10 22:25:07 +01:00 committed by Tom Rini
parent 738b34668f
commit 97135d9f42

View file

@ -308,9 +308,9 @@ U_BOOT_CMD(
#ifdef CONFIG_PARTITION_TYPE_GUID #ifdef CONFIG_PARTITION_TYPE_GUID
"part type <interface> <dev>:<part>\n" "part type <interface> <dev>:<part>\n"
" - print partition type\n" " - print partition type\n"
#endif
"part type <interface> <dev>:<part> <varname>\n" "part type <interface> <dev>:<part> <varname>\n"
" - set environment variable to partition type\n" " - set environment variable to partition type\n"
#endif
"part set <interface> <dev> type\n" "part set <interface> <dev> type\n"
" - set partition type for a device\n" " - set partition type for a device\n"
"part types\n" "part types\n"