[U-Boot] [PATCH v2 5/9] Don't include standard parser if hush is used
Simon Glass
sjg at chromium.org
Sat Dec 10 19:43:57 CET 2011
This saves about 1KB of code space on ARM with CONFIG_SYS_HUSH_PARSER
defined.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
common/main.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/common/main.c b/common/main.c
index 59b87a1..11027f7 100644
--- a/common/main.c
+++ b/common/main.c
@@ -1116,6 +1116,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;
@@ -1366,6 +1367,7 @@ static int builtin_run_command(const char *cmd, int flag)
return rc ? rc : repeatable;
}
+#endif
/*
* Return 0 on success, or != 0 on error.
--
1.7.3.1
More information about the U-Boot
mailing list