]> git.sur5r.net Git - u-boot/blobdiff - board/freescale/p1_p2_rdb/Makefile
B4860QDS: Enable enet port as per fsl_b4860_serdes2 string in hwconfig
[u-boot] / board / freescale / p1_p2_rdb / Makefile
index 36df225cf209f4790d7b5626302cb5def4ed81a0..a97bf45f00fc798b997f93ba1919723e79bcbd20 100644 (file)
@@ -4,28 +4,27 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-include $(TOPDIR)/config.mk
-
-LIB    = $(obj)lib$(BOARD).o
-
-COBJS-y        += $(BOARD).o
-COBJS-y        += ddr.o
-COBJS-y        += law.o
-COBJS-$(CONFIG_PCI)  += pci.o
-COBJS-y        += tlb.o
-
-SRCS   := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
-OBJS   := $(addprefix $(obj),$(COBJS-y))
-SOBJS  := $(addprefix $(obj),$(SOBJS))
-
-$(LIB):        $(obj).depend $(OBJS) $(SOBJS)
-       $(call cmd_link_o_target, $(OBJS))
-
-#########################################################################
-
-# defines $(obj).depend target
-include $(SRCTREE)/rules.mk
-
-sinclude $(obj).depend
-
-#########################################################################
+MINIMAL=
+
+ifdef CONFIG_SPL_BUILD
+ifdef CONFIG_SPL_INIT_MINIMAL
+MINIMAL=y
+endif
+endif
+
+ifdef MINIMAL
+
+obj-y  += spl_minimal.o tlb.o law.o
+
+else
+ifdef CONFIG_SPL_BUILD
+obj-y += spl.o
+else
+obj-y  += p1_p2_rdb.o
+obj-$(CONFIG_PCI)  += pci.o
+endif
+obj-y  += ddr.o
+obj-y  += law.o
+obj-y  += tlb.o
+
+endif