From 4bfc4b44582670182c1519f931cbe0b0efec616e Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Tue, 5 Apr 2011 17:15:24 +0200 Subject: [PATCH] arm: compile icache command only when command support is present Signed-off-by: Sascha Hauer --- arch/arm/cpu/cpu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/cpu/cpu.c b/arch/arm/cpu/cpu.c index 346f8dce6..cf3078906 100644 --- a/arch/arm/cpu/cpu.c +++ b/arch/arm/cpu/cpu.c @@ -97,7 +97,7 @@ void arch_shutdown(void) * default setting we are running in barebox, there's no special preparation * required. */ - +#ifdef CONFIG_COMMAND static int do_icache(struct command *cmdtp, int argc, char *argv[]) { if (argc == 1) { @@ -121,3 +121,4 @@ BAREBOX_CMD_START(icache) .usage = "show/change icache status", BAREBOX_CMD_HELP(cmd_icache_help) BAREBOX_CMD_END +#endif