summaryrefslogtreecommitdiff
path: root/cmd/booti.c
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2023-10-07 15:13:08 -0400
committerTom Rini <[email protected]>2023-10-16 10:24:58 -0400
commit3616218b5acea74011aea2d14aa1f6366f242849 (patch)
treeccf5fd9d448069e418752519909c8333d66ee0e0 /cmd/booti.c
parentdec5777fffcc6f9e97a20bc23fc7353b30b70ed5 (diff)
cmd: Convert existing long help messages to the new macro
- Generally we just drop the #ifdef CONFIG_SYS_LONGHELP and endif lines and use U_BOOT_LONGHELP to declare the same variable name as before - In a few places, either rename the variable to follow convention or introduce the variable as it was being done inline before. Signed-off-by: Tom Rini <[email protected]> Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'cmd/booti.c')
-rw-r--r--cmd/booti.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/cmd/booti.c b/cmd/booti.c
index 6ac39193db8..1d531bdd065 100644
--- a/cmd/booti.c
+++ b/cmd/booti.c
@@ -134,8 +134,7 @@ int do_booti(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
return ret;
}
-#ifdef CONFIG_SYS_LONGHELP
-static char booti_help_text[] =
+U_BOOT_LONGHELP(booti,
"[addr [initrd[:size]] [fdt]]\n"
" - boot Linux flat or compressed 'Image' stored at 'addr'\n"
"\tThe argument 'initrd' is optional and specifies the address\n"
@@ -151,8 +150,7 @@ static char booti_help_text[] =
"\tis required. To boot a kernel with a device-tree blob but\n"
"\twithout an initrd image, use a '-' for the initrd argument.\n"
#endif
- "";
-#endif
+ );
U_BOOT_CMD(
booti, CONFIG_SYS_MAXARGS, 1, do_booti,