summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-04-05 17:15:24 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2011-04-11 15:57:51 +0200
commit4bfc4b44582670182c1519f931cbe0b0efec616e (patch)
tree6c04319fd3596ddbe77a4d40412497d56ec063fa
parent5b85da326afad83a1477df5ac18410f8998269af (diff)
downloadbarebox-4bfc4b44582670182c1519f931cbe0b0efec616e.tar.gz
barebox-4bfc4b44582670182c1519f931cbe0b0efec616e.tar.xz
arm: compile icache command only when command support is present
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/cpu/cpu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/cpu/cpu.c b/arch/arm/cpu/cpu.c
index 346f8dce63..cf30789064 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