summaryrefslogtreecommitdiff
path: root/board/atmel
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2008-03-31 21:12:17 +0200
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2008-04-01 01:46:01 +0200
commit761712188b353494defb2b644491ff73d0daaa6f (patch)
tree6c60f17cc7a133a5335acb2fb19a56fdbe3b233b /board/atmel
parent983c1db04c1dd0f92e02f06d29f0c65a3d9a2687 (diff)
downloadu-boot-imx-761712188b353494defb2b644491ff73d0daaa6f.zip
u-boot-imx-761712188b353494defb2b644491ff73d0daaa6f.tar.gz
u-boot-imx-761712188b353494defb2b644491ff73d0daaa6f.tar.bz2
AT91CAP9ADK: Move CONFIG_CMD_NAND to Makefile
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'board/atmel')
-rw-r--r--board/atmel/at91cap9adk/Makefile8
-rw-r--r--board/atmel/at91cap9adk/nand.c3
2 files changed, 5 insertions, 6 deletions
diff --git a/board/atmel/at91cap9adk/Makefile b/board/atmel/at91cap9adk/Makefile
index 359fdab..3961030 100644
--- a/board/atmel/at91cap9adk/Makefile
+++ b/board/atmel/at91cap9adk/Makefile
@@ -25,10 +25,12 @@ include $(TOPDIR)/config.mk
LIB = $(obj)lib$(BOARD).a
-COBJS := at91cap9adk.o led.o nand.o
+COBJS-y += at91cap9adk.o
+COBJS-y += led.o
+COBJS-$(CONFIG_CMD_NAND) += nand.o
-SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS := $(addprefix $(obj),$(COBJS))
+SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
+OBJS := $(addprefix $(obj),$(COBJS-y))
SOBJS := $(addprefix $(obj),$(SOBJS))
$(LIB): $(obj).depend $(OBJS) $(SOBJS)
diff --git a/board/atmel/at91cap9adk/nand.c b/board/atmel/at91cap9adk/nand.c
index 1277973..c72b024 100644
--- a/board/atmel/at91cap9adk/nand.c
+++ b/board/atmel/at91cap9adk/nand.c
@@ -29,8 +29,6 @@
#include <asm/arch/gpio.h>
#include <asm/arch/at91_pio.h>
-#ifdef CONFIG_CMD_NAND
-
#include <nand.h>
/*
@@ -70,4 +68,3 @@ int board_nand_init(struct nand_chip *nand)
return 0;
}
-#endif