]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cmd: part: Cover both part type entries with GUID ifdef
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 10 Dec 2023 21:25:07 +0000 (22:25 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 20 Dec 2023 19:13:20 +0000 (14:13 -0500)
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>
cmd/part.c

index 0ce190005d327d9879eee6b7ebd5f6797668427c..c75f85acd52d4dca58bebfab742cca99cc4f2641 100644 (file)
@@ -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"