atmel/at91/boards: compile dataflash partition only when dataflash is
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Sat, 21 Mar 2009 20:08:01 +0000 (21:08 +0100)
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Sun, 22 Mar 2009 12:22:19 +0000 (13:22 +0100)
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
board/atmel/at91cap9adk/Makefile
board/atmel/at91sam9260ek/Makefile
board/atmel/at91sam9261ek/Makefile
board/atmel/at91sam9263ek/Makefile
board/atmel/at91sam9rlek/Makefile

index 2d2ff2cbb9701a7735a18134101046ddf54d2338..d2536491b3107039b63275ea71bd36355122d9f3 100644 (file)
@@ -31,7 +31,7 @@ LIB   = $(obj)lib$(BOARD).a
 
 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)
index 7c8a612e479966eaaa20294e4fdc5ed77afa2636..2e6543411598fdf4c8d2ac7ceedb3562849fa4bc 100644 (file)
@@ -31,7 +31,7 @@ LIB   = $(obj)lib$(BOARD).a
 
 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)
index d7b063dec8dfc780e59d4af0610b71232f435738..edeb64821163336f36bb1db2ebfce2aca1d920c1 100644 (file)
@@ -31,7 +31,7 @@ LIB   = $(obj)lib$(BOARD).a
 
 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)
index 00a6b00ddfa4a6543d31c9b01fb2dc1c6b64887a..d0d42726ea263aaed418e06d296dcac628eaf5ef 100644 (file)
@@ -31,7 +31,7 @@ LIB   = $(obj)lib$(BOARD).a
 
 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)
index 90029cb8729c2e2c53beecf6898094a324d882ec..3dbee27cfb7b828e30fffa33537060e5af1ff39a 100644 (file)
@@ -31,7 +31,7 @@ LIB   = $(obj)lib$(BOARD).a
 
 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)