]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Don't include standard parser if hush is used
authorSimon Glass <sjg@chromium.org>
Tue, 14 Feb 2012 19:59:22 +0000 (19:59 +0000)
committerWolfgang Denk <wd@denx.de>
Tue, 6 Mar 2012 20:09:30 +0000 (21:09 +0100)
This saves about 1KB of code space on ARM with CONFIG_SYS_HUSH_PARSER
defined.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/main.c

index 10ee12c2789d63cb07fa0091d1b62f8dda42e0a5..637da2b4d34953209fbcd79c306ca6282a739259 100644 (file)
@@ -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.