[U-Boot,3/3] imx: nandbcb: include long help only when enabled
diff mbox series

Message ID 20190823163510.748006-3-pn@denx.de
State New
Delegated to: Stefano Babic
Headers show
Series
  • [U-Boot,1/3] imx: remove board specific boot order from spl
Related show

Commit Message

Parthiban Nallathambi Aug. 23, 2019, 4:35 p.m. UTC
conditionally include long help text when enabled

Signed-off-by: Parthiban Nallathambi <pn@denx.de>
---
 arch/arm/mach-imx/cmd_nandbcb.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Peng Fan Aug. 26, 2019, 8:26 a.m. UTC | #1
> Subject: [PATCH 3/3] imx: nandbcb: include long help only when enabled
> 
> conditionally include long help text when enabled
> 
> Signed-off-by: Parthiban Nallathambi <pn@denx.de>
> ---
>  arch/arm/mach-imx/cmd_nandbcb.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/arch/arm/mach-imx/cmd_nandbcb.c
> b/arch/arm/mach-imx/cmd_nandbcb.c index 065b814b2e..7811c61d22
> 100644
> --- a/arch/arm/mach-imx/cmd_nandbcb.c
> +++ b/arch/arm/mach-imx/cmd_nandbcb.c
> @@ -359,9 +359,11 @@ usage:
>  	return CMD_RET_USAGE;
>  }
> 
> +#ifdef CONFIG_SYS_LONGHELP
>  static char nandbcb_help_text[] =
>  	"update addr off|partition len	- update 'len' bytes starting at\n"
>  	"	'off|part' to memory address 'addr', skipping  bad blocks";
> +#endif
> 
>  U_BOOT_CMD(nandbcb, 5, 1, do_nandbcb,
>  	   "i.MX6 Nand BCB",
> --

Reviewed-by: Peng Fan <peng.fan@nxp.com>

> 2.21.0

Patch
diff mbox series

diff --git a/arch/arm/mach-imx/cmd_nandbcb.c b/arch/arm/mach-imx/cmd_nandbcb.c
index 065b814b2e..7811c61d22 100644
--- a/arch/arm/mach-imx/cmd_nandbcb.c
+++ b/arch/arm/mach-imx/cmd_nandbcb.c
@@ -359,9 +359,11 @@  usage:
 	return CMD_RET_USAGE;
 }
 
+#ifdef CONFIG_SYS_LONGHELP
 static char nandbcb_help_text[] =
 	"update addr off|partition len	- update 'len' bytes starting at\n"
 	"	'off|part' to memory address 'addr', skipping  bad blocks";
+#endif
 
 U_BOOT_CMD(nandbcb, 5, 1, do_nandbcb,
 	   "i.MX6 Nand BCB",