8xxx: Refactored common cpu specific code for 85xx/86xx into one file.
[oweals/u-boot.git] / cpu / mpc86xx / Makefile
index 12ad66d366fbf89358e2fcb6695f43959cbb78d7..daca79ad4f2217ec4a2775808dd83a3f1f50a0ff 100644 (file)
@@ -29,28 +29,23 @@ include $(TOPDIR)/config.mk
 LIB    = $(obj)lib$(CPU).a
 
 START  = start.o
-SOBJS  = cache.o
 
-COBJS-y        += traps.o
+SOBJS-y += cache.o
+SOBJS-$(CONFIG_MP) += release.o
+
 COBJS-y        += cpu.o
 COBJS-y        += cpu_init.o
-COBJS-y        += speed.o
-COBJS-y        += interrupts.o
-
-COBJS-$(CONFIG_OF_LIBFDT) += fdt.o
-
-ifeq ($(CONFIG_FSL_DDR2),y)
-COBJS-$(CONFIG_MPC8641) += ddr-8641.o
 # 8610 & 8641 are identical w/regards to DDR
 COBJS-$(CONFIG_MPC8610) += ddr-8641.o
-endif
-
-ifneq ($(CONFIG_FSL_DDR2),y)
-COBJS-y        += spd_sdram.o
-endif
+COBJS-$(CONFIG_MPC8641) += ddr-8641.o
+COBJS-$(CONFIG_OF_LIBFDT) += fdt.o
+COBJS-y        += interrupts.o
+COBJS-$(CONFIG_MP) += mp.o
+COBJS-y        += speed.o
+COBJS-y        += traps.o
 
-SRCS   := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
-OBJS   := $(addprefix $(obj),$(SOBJS) $(COBJS-y))
+SRCS   := $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
+OBJS   := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
 START  := $(addprefix $(obj),$(START))
 
 all:   $(obj).depend $(START) $(LIB)