9
0
Fork 0

arm: compile icache command only when command support is present

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2011-04-05 17:15:24 +02:00
parent 5b85da326a
commit 4bfc4b4458
1 changed files with 2 additions and 1 deletions

View File

@ -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