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