summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-03-19 02:18:38 -0600
committerTom Rini <trini@konsulko.com>2016-04-01 17:17:40 -0400
commitf8bb69643550fccbf1df514deda53089da7940e3 (patch)
tree769b0055eb9516ddad955b1219edefd5f421d8a6 /cmd
parent74322201dde4593dc3194c702e95e5760e6b497a (diff)
downloadtalos-obmc-uboot-f8bb69643550fccbf1df514deda53089da7940e3.tar.gz
talos-obmc-uboot-f8bb69643550fccbf1df514deda53089da7940e3.zip
Drop command-processing code when CONFIG_CMDLINE is disabled
Command parsing and processing code is not needed when the command line is disabled. Remove this code in that case. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/help.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/help.c b/cmd/help.c
index 6ff494d79b..701ae7e905 100644
--- a/cmd/help.c
+++ b/cmd/help.c
@@ -10,9 +10,13 @@
static int do_help(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
{
+#ifdef CONFIG_CMDLINE
cmd_tbl_t *start = ll_entry_start(cmd_tbl_t, cmd);
const int len = ll_entry_count(cmd_tbl_t, cmd);
return _do_help(start, len, cmdtp, flag, argc, argv);
+#else
+ return 0;
+#endif
}
U_BOOT_CMD(
OpenPOWER on IntegriCloud