atmel/at91/boards: compile dataflash partition only when dataflash is

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
diff --git a/board/atmel/at91cap9adk/Makefile b/board/atmel/at91cap9adk/Makefile
index 2d2ff2c..d253649 100644
--- a/board/atmel/at91cap9adk/Makefile
+++ b/board/atmel/at91cap9adk/Makefile
@@ -31,7 +31,7 @@
 
 COBJS-y	+= at91cap9adk.o
 COBJS-y	+= led.o
-COBJS-y	+= partition.o
+COBJS-$(CONFIG_HAS_DATAFLASH) += partition.o
 COBJS-$(CONFIG_CMD_NAND) += nand.o
 
 SRCS    := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)