浏览代码

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>
Simon Glass 13 年之前
父节点
当前提交
7fed89e00e
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      common/main.c

+ 2 - 0
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.