blob: 3bc4f4325f0593eeb07f3fa6a017f91794f55629 [file] [log] [blame]
Timur Tabi9b45b5a2010-06-14 15:28:24 -05001#
2# Copyright 2010 Freescale Semiconductor, Inc.
3#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02004# SPDX-License-Identifier: GPL-2.0+
Timur Tabi9b45b5a2010-06-14 15:28:24 -05005#
6
7include $(TOPDIR)/config.mk
8
Sebastien Carliera8d426f2010-11-05 15:48:07 +01009LIB = $(obj)lib$(BOARD).o
Timur Tabi9b45b5a2010-06-14 15:28:24 -050010
Matthew McClintockcd99caa2013-02-18 10:02:19 +000011MINIMAL=
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
Ying Zhangdfb2b152013-08-16 15:16:12 +080024ifdef CONFIG_SPL_BUILD
25COBJS-y += spl.o
26endif
Timur Tabi9b45b5a2010-06-14 15:28:24 -050027COBJS-y += $(BOARD).o
28COBJS-y += ddr.o
29COBJS-y += law.o
30COBJS-y += tlb.o
31
Timur Tabi209c0722010-09-24 01:25:53 +020032COBJS-$(CONFIG_FSL_DIU_FB) += diu.o
Matthew McClintockcd99caa2013-02-18 10:02:19 +000033endif
Timur Tabi209c0722010-09-24 01:25:53 +020034
Timur Tabi9b45b5a2010-06-14 15:28:24 -050035SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
36OBJS := $(addprefix $(obj),$(COBJS-y))
37SOBJS := $(addprefix $(obj),$(SOBJS))
38
39$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010040 $(call cmd_link_o_target, $(OBJS))
Timur Tabi9b45b5a2010-06-14 15:28:24 -050041
Timur Tabi9b45b5a2010-06-14 15:28:24 -050042#########################################################################
43
44# defines $(obj).depend target
45include $(SRCTREE)/rules.mk
46
47sinclude $(obj).depend
48
49#########################################################################