From: Jean-Christophe PLAGNIOL-VILLARD Date: Mon, 31 Mar 2008 19:12:17 +0000 (+0200) Subject: AT91CAP9ADK: Move CONFIG_CMD_NAND to Makefile X-Git-Tag: v1.3.3-rc1~111^2~5 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=761712188b353494defb2b644491ff73d0daaa6f;p=u-boot AT91CAP9ADK: Move CONFIG_CMD_NAND to Makefile Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- diff --git a/board/atmel/at91cap9adk/Makefile b/board/atmel/at91cap9adk/Makefile index 359fdab600..3961030359 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 1277973a98..c72b0244bd 100644 --- a/board/atmel/at91cap9adk/nand.c +++ b/board/atmel/at91cap9adk/nand.c @@ -29,8 +29,6 @@ #include #include -#ifdef CONFIG_CMD_NAND - #include /* @@ -70,4 +68,3 @@ int board_nand_init(struct nand_chip *nand) return 0; } -#endif