]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - board/socrates/Makefile
Merge branch 'master' of /home/stefan/git/u-boot/u-boot
[karo-tx-uboot.git] / board / socrates / Makefile
index 11503ebe17198bedeaa452d6c9fef56f2ef7b234..6fae6014073eae9bffcd3ef92e8029ef24b99eed 100644 (file)
@@ -28,10 +28,15 @@ include $(TOPDIR)/config.mk
 LIB    = $(obj)lib$(BOARD).a
 #
 
-COBJS  := $(BOARD).o law.o tlb.o sdram.o nand.o
-
-SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
-OBJS   := $(addprefix $(obj),$(COBJS))
+COBJS-y        += $(BOARD).o
+COBJS-y        += law.o
+COBJS-y        += tlb.o
+COBJS-y        += nand.o
+COBJS-y        += sdram.o
+COBJS-$(CONFIG_FSL_DDR2) += ddr.o
+
+SRCS   := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
+OBJS   := $(addprefix $(obj),$(COBJS-y))
 SOBJS  := $(addprefix $(obj),$(SOBJS))
 
 $(LIB):        $(obj).depend $(OBJS) $(SOBJS)
@@ -41,7 +46,7 @@ clean:
        rm -f $(OBJS) $(SOBJS)
 
 distclean:     clean
-       rm -f $(LIB) core *.bak .depend
+       rm -f $(LIB) core *.bak $(obj).depend
 
 #########################################################################