]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/atmel/at91sam9261ek/Makefile
at91sam9/at91cap: move nand drivers to drivers/mtd/nand
[karo-tx-uboot.git] / board / atmel / at91sam9261ek / Makefile
index 7702a9c90348948a636c6b95676b1c90b5e34b32..d9b3a79536fae9df0480852fb943ca7225456b42 100644 (file)
@@ -31,8 +31,7 @@ LIB   = $(obj)lib$(BOARD).a
 
 COBJS-y += at91sam9261ek.o
 COBJS-y += led.o
-COBJS-y        += partition.o
-COBJS-$(CONFIG_CMD_NAND) += nand.o
+COBJS-$(CONFIG_HAS_DATAFLASH) += partition.o
 
 SRCS   := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
 OBJS   := $(addprefix $(obj),$(COBJS-y))
@@ -45,7 +44,7 @@ clean:
        rm -f $(SOBJS) $(OBJS)
 
 distclean:     clean
-       rm -f $(LIB) core *.bak .depend
+       rm -f $(LIB) core *.bak $(obj).depend
 
 #########################################################################