summaryrefslogtreecommitdiff
path: root/board/sbc8641d/Makefile
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2008-08-26 15:01:37 -0500
committerWolfgang Denk <wd@denx.de>2008-08-27 02:06:04 +0200
commit9bd4e5911b750837515466bc7449087698b88e0e (patch)
treed6f80cff80369b09a932ac4c5509b3c9fd91a266 /board/sbc8641d/Makefile
parent39aa1a73483e1ac2bd56d5523abfc3970ee82c77 (diff)
FSL DDR: Convert SBC8641D to new DDR code.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'board/sbc8641d/Makefile')
-rw-r--r--board/sbc8641d/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/board/sbc8641d/Makefile b/board/sbc8641d/Makefile
index c096e1552e..c78b0a8280 100644
--- a/board/sbc8641d/Makefile
+++ b/board/sbc8641d/Makefile
@@ -25,10 +25,12 @@ include $(TOPDIR)/config.mk
LIB = $(obj)lib$(BOARD).a
-COBJS := $(BOARD).o law.o
+COBJS-y += $(BOARD).o
+COBJS-y += law.o
+COBJS-$(CONFIG_FSL_DDR2) += ddr.o
-SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS := $(addprefix $(obj),$(COBJS))
+SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
+OBJS := $(addprefix $(obj),$(COBJS-y))
SOBJS := $(addprefix $(obj),$(SOBJS))
$(LIB): $(obj).depend $(OBJS) $(SOBJS)