]> git.sur5r.net Git - u-boot/blobdiff - arch/powerpc/cpu/mpc8xxx/Makefile
Merge git://git.denx.de/u-boot-dm
[u-boot] / arch / powerpc / cpu / mpc8xxx / Makefile
index 86344a7b4a0d2a86addea6e412a70aa47a005b66..e95539e0a3efce0a25d9e624438cb690ed85024d 100644 (file)
@@ -6,28 +6,25 @@
 # Version 2 as published by the Free Software Foundation.
 #
 
-include $(TOPDIR)/config.mk
+MINIMAL=
 
-LIB    = $(obj)lib8xxx.o
-
-ifneq ($(CPU),mpc83xx)
-COBJS-y        += cpu.o
+ifdef CONFIG_SPL_BUILD
+ifdef CONFIG_SPL_INIT_MINIMAL
+MINIMAL=y
+endif
 endif
 
-COBJS-$(CONFIG_OF_LIBFDT) += fdt.o
-COBJS-$(CONFIG_FSL_IFC) += fsl_ifc.o
-COBJS-$(CONFIG_FSL_LBC) += fsl_lbc.o
-COBJS-$(CONFIG_SYS_SRIO) += srio.o
-COBJS-$(CONFIG_FSL_LAW) += law.o
-
-SRCS   := $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
-OBJS   := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
+ifdef MINIMAL
 
-all:   $(obj).depend $(LIB)
+obj-$(CONFIG_FSL_LAW) += law.o
 
-$(LIB):        $(OBJS)
-       $(call cmd_link_o_target, $(OBJS))
+else
+obj-$(CONFIG_MPC85xx) += cpu.o
+obj-$(CONFIG_MPC86xx) += cpu.o
 
-include $(SRCTREE)/rules.mk
+obj-$(CONFIG_OF_LIBFDT) += fdt.o
+obj-$(CONFIG_FSL_LBC) += fsl_lbc.o
+obj-$(CONFIG_SYS_SRIO) += srio.o
+obj-$(CONFIG_FSL_LAW) += law.o
 
-sinclude $(obj).depend
+endif