diff options
author | Simon Glass <sjg@chromium.org> | 2012-02-14 19:59:22 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2012-03-06 21:09:30 +0100 |
commit | 7fed89e00e0836f7894f350716b3f182ee562760 (patch) | |
tree | 83bf2d972be3792a2a2563fc3d7947fb4eec74d3 /common/main.c | |
parent | 5307153236caaf2304e578c148e00a4b65cb8604 (diff) | |
download | u-boot-imx-7fed89e00e0836f7894f350716b3f182ee562760.zip u-boot-imx-7fed89e00e0836f7894f350716b3f182ee562760.tar.gz u-boot-imx-7fed89e00e0836f7894f350716b3f182ee562760.tar.bz2 |
Don't include standard parser if hush is used
This saves about 1KB of code space on ARM with CONFIG_SYS_HUSH_PARSER
defined.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/main.c')
-rw-r--r-- | common/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/main.c b/common/main.c index 10ee12c..637da2b 100644 --- a/common/main.c +++ b/common/main.c @@ -1132,6 +1132,7 @@ int parse_line (char *line, char *argv[]) /****************************************************************************/ +#ifndef CONFIG_SYS_HUSH_PARSER static void process_macros (const char *input, char *output) { char c, prev; @@ -1382,6 +1383,7 @@ static int builtin_run_command(const char *cmd, int flag) return rc ? rc : repeatable; } +#endif /* * Run a command using the selected parser. |