mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
cmd: bdinfo: provide long help with all options
Document the bdinfo -a, -e and -m options in the long help, but only when they can be used. The string concatenation is a bit odd with two newlines, but it does render properly once in U-Boot CLI. Tested-by: Michal Simek <michal.simek@amd.com> Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
This commit is contained in:
committed by
Heinrich Schuchardt
parent
00bc1adae4
commit
de3754fea3
16
cmd/bdinfo.c
16
cmd/bdinfo.c
@@ -213,5 +213,19 @@ int do_bdinfo(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
U_BOOT_CMD(
|
||||
bdinfo, 2, 1, do_bdinfo,
|
||||
"print Board Info structure",
|
||||
""
|
||||
// Long help prepended with command's name, and `bdinfo` is a valid command
|
||||
"\n"
|
||||
#if CONFIG_IS_ENABLED(GETOPT)
|
||||
"bdinfo -a\n"
|
||||
#endif
|
||||
" - print all Board Info structure"
|
||||
#if CONFIG_IS_ENABLED(GETOPT)
|
||||
"\n"
|
||||
#if IS_ENABLED(CONFIG_NET) || IS_ENABLED(CONFIG_NET_LWIP)
|
||||
"bdinfo -e\n"
|
||||
" - print Board Info related to network\n"
|
||||
#endif
|
||||
"bdinfo -m\n"
|
||||
" - print Board Info related to DRAM"
|
||||
#endif
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user