Skip to content
Snippets Groups Projects
Commit 4e03dde8 authored by Jean-Christophe PLAGNIOL-VILLARD's avatar Jean-Christophe PLAGNIOL-VILLARD
Browse files

AT91SAM9260EK: Move CONFIG_CMD_NAND to Makefile

parent 0176d43e
No related branches found
No related tags found
No related merge requests found
...@@ -25,10 +25,12 @@ include $(TOPDIR)/config.mk ...@@ -25,10 +25,12 @@ include $(TOPDIR)/config.mk
LIB = $(obj)lib$(BOARD).a LIB = $(obj)lib$(BOARD).a
COBJS := at91sam9260ek.o led.o nand.o COBJS-y += at91sam9260ek.o
COBJS-y += led.o
COBJS-$(CONFIG_CMD_NAND) += nand.o
SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
OBJS := $(addprefix $(obj),$(COBJS)) OBJS := $(addprefix $(obj),$(COBJS-y))
SOBJS := $(addprefix $(obj),$(SOBJS)) SOBJS := $(addprefix $(obj),$(SOBJS))
$(LIB): $(obj).depend $(OBJS) $(SOBJS) $(LIB): $(obj).depend $(OBJS) $(SOBJS)
......
...@@ -29,8 +29,6 @@ ...@@ -29,8 +29,6 @@
#include <asm/arch/gpio.h> #include <asm/arch/gpio.h>
#include <asm/arch/at91_pio.h> #include <asm/arch/at91_pio.h>
#ifdef CONFIG_CMD_NAND
#include <nand.h> #include <nand.h>
/* /*
...@@ -76,4 +74,3 @@ int board_nand_init(struct nand_chip *nand) ...@@ -76,4 +74,3 @@ int board_nand_init(struct nand_chip *nand)
return 0; return 0;
} }
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment