blob: f8d0b35aba26967f33bde9344b528688b2a18ca6 [file] [log] [blame]
Li Yang5f999732011-07-26 09:50:46 -05001#
2# Copyright 2010-2011 Freescale Semiconductor, Inc.
3#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02004# SPDX-License-Identifier: GPL-2.0+
Li Yang5f999732011-07-26 09:50:46 -05005#
6
7include $(TOPDIR)/config.mk
8
9LIB = $(obj)lib$(BOARD).o
10
Scott Woodc4f0d002012-09-20 19:05:12 -050011MINIMAL=
12
13ifdef CONFIG_SPL_BUILD
14ifdef CONFIG_SPL_INIT_MINIMAL
15MINIMAL=y
16endif
17endif
18
19ifdef MINIMAL
20
21COBJS-y += spl_minimal.o tlb.o law.o
22
23else
24
Li Yang5f999732011-07-26 09:50:46 -050025COBJS-y += $(BOARD).o
26COBJS-y += ddr.o
27COBJS-y += law.o
28COBJS-y += tlb.o
29
Scott Woodc4f0d002012-09-20 19:05:12 -050030endif
31
Li Yang5f999732011-07-26 09:50:46 -050032SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
33OBJS := $(addprefix $(obj),$(COBJS-y))
34SOBJS := $(addprefix $(obj),$(SOBJS))
35
36$(LIB): $(obj).depend $(OBJS) $(SOBJS)
37 $(call cmd_link_o_target, $(OBJS))
38
Li Yang5f999732011-07-26 09:50:46 -050039#########################################################################
40
41# defines $(obj).depend target
42include $(SRCTREE)/rules.mk
43
44sinclude $(obj).depend
45
46#########################################################################