blob: cfc05f71243c1979d986f7355d4f4d46542e1409 [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
Timur Tabic59e1b42010-06-14 15:28:24 -050024COBJS-y += $(BOARD).o
25COBJS-y += ddr.o
26COBJS-y += law.o
27COBJS-y += tlb.o
28
Timur Tabid5e01e42010-09-24 01:25:53 +020029COBJS-$(CONFIG_FSL_DIU_FB) += diu.o
Matthew McClintockf45210d2013-02-18 10:02:19 +000030endif
Timur Tabid5e01e42010-09-24 01:25:53 +020031
Timur Tabic59e1b42010-06-14 15:28:24 -050032SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
33OBJS := $(addprefix $(obj),$(COBJS-y))
34SOBJS := $(addprefix $(obj),$(SOBJS))
35
36$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010037 $(call cmd_link_o_target, $(OBJS))
Timur Tabic59e1b42010-06-14 15:28:24 -050038
Timur Tabic59e1b42010-06-14 15:28:24 -050039#########################################################################
40
41# defines $(obj).depend target
42include $(SRCTREE)/rules.mk
43
44sinclude $(obj).depend
45
46#########################################################################