[U-Boot] [PATCH 3/3] imx: nandbcb: include long help only when enabled
Peng Fan
peng.fan at nxp.com
Mon Aug 26 08:26:41 UTC 2019
> 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 at 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 at nxp.com>
> 2.21.0
More information about the U-Boot
mailing list