aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut+renesas@mailbox.org>2023-12-10 22:25:07 +0100
committerTom Rini <trini@konsulko.com>2023-12-20 09:48:18 -0500
commit0eb4f5a58750b1e974c5f45cc9f156262dcea394 (patch)
treec38c7726bb75aec0f5a2ff45ae829c1504ee7616
parent2e9af008acd82ada0b759b6af17b7a7dc6c08a59 (diff)
downloadu-boot-WIP/2023-12-20-assorted-general-updates.zip
u-boot-WIP/2023-12-20-assorted-general-updates.tar.gz
u-boot-WIP/2023-12-20-assorted-general-updates.tar.bz2
cmd: part: Cover both part type entries with GUID ifdefWIP/2023-12-20-assorted-general-updates
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>
-rw-r--r--cmd/part.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/part.c b/cmd/part.c
index 0ce1900..c75f85a 100644
--- a/cmd/part.c
+++ b/cmd/part.c
@@ -308,9 +308,9 @@ U_BOOT_CMD(
#ifdef CONFIG_PARTITION_TYPE_GUID
"part type <interface> <dev>:<part>\n"
" - print partition type\n"
-#endif
"part type <interface> <dev>:<part> <varname>\n"
" - set environment variable to partition type\n"
+#endif
"part set <interface> <dev> type\n"
" - set partition type for a device\n"
"part types\n"