summaryrefslogtreecommitdiff
path: root/cmd/mmc.c
diff options
context:
space:
mode:
authorAlex Kiernan <alex.kiernan@gmail.com>2018-06-11 16:20:09 +0000
committerTom Rini <trini@konsulko.com>2018-06-18 14:43:13 -0400
commit845936792bc3c602470e2d759232fb1537cbc5e7 (patch)
tree78e9d939d52a0d8c732f8b6e5d779cf4082631dd /cmd/mmc.c
parentd146a7b9c6200c7a84a15208f0c06e0ab60890dd (diff)
downloadu-boot-845936792bc3c602470e2d759232fb1537cbc5e7.tar.gz
u-boot-845936792bc3c602470e2d759232fb1537cbc5e7.tar.bz2
u-boot-845936792bc3c602470e2d759232fb1537cbc5e7.zip
mmc: Remove hwpartition help text when command is disabled
When the `mmc hwpartition` command is disabled, remove the associated help text. Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Diffstat (limited to 'cmd/mmc.c')
-rw-r--r--cmd/mmc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/mmc.c b/cmd/mmc.c
index c2ee2d9c0a..3920a1836a 100644
--- a/cmd/mmc.c
+++ b/cmd/mmc.c
@@ -935,6 +935,7 @@ U_BOOT_CMD(
"mmc part - lists available partition on current mmc device\n"
"mmc dev [dev] [part] - show or set current mmc device [partition]\n"
"mmc list - lists available devices\n"
+#if CONFIG_IS_ENABLED(MMC_HW_PARTITIONING)
"mmc hwpartition [args...] - does hardware partitioning\n"
" arguments (sizes in 512-byte blocks):\n"
" [user [enh start cnt] [wrrel {on|off}]] - sets user data area attributes\n"
@@ -942,6 +943,7 @@ U_BOOT_CMD(
" [check|set|complete] - mode, complete set partitioning completed\n"
" WARNING: Partitioning is a write-once setting once it is set to complete.\n"
" Power cycling is required to initialize partitions after set to complete.\n"
+#endif
#ifdef CONFIG_SUPPORT_EMMC_BOOT
"mmc bootbus dev boot_bus_width reset_boot_bus_width boot_mode\n"
" - Set the BOOT_BUS_WIDTH field of the specified device\n"