diff options
author | Simon Glass <sjg@chromium.org> | 2016-03-19 02:18:38 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-04-01 17:17:40 -0400 |
commit | f8bb69643550fccbf1df514deda53089da7940e3 (patch) | |
tree | 769b0055eb9516ddad955b1219edefd5f421d8a6 /cmd | |
parent | 74322201dde4593dc3194c702e95e5760e6b497a (diff) | |
download | u-boot-f8bb69643550fccbf1df514deda53089da7940e3.zip u-boot-f8bb69643550fccbf1df514deda53089da7940e3.tar.gz u-boot-f8bb69643550fccbf1df514deda53089da7940e3.tar.bz2 |
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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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( |