Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
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)
COBJS-y += at91sam9260ek.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)
COBJS-y += at91sam9261ek.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)
COBJS-y += at91sam9263ek.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)
COBJS-y += at91sam9rlek.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)