blob: 0eeef0526615dace96987acfc0487c33bff2aa3b [file] [log] [blame]
Timur Tabic59e1b42010-06-14 15:28:24 -05001#
2# Copyright 2010 Freescale Semiconductor, Inc.
3#
4# This program is free software; you can redistribute it and/or modify it
5# under the terms of the GNU General Public License as published by the Free
6# Software Foundation; either version 2 of the License, or (at your option)
7# any later version.
8#
9
10include $(TOPDIR)/config.mk
11
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010012LIB = $(obj)lib$(BOARD).o
Timur Tabic59e1b42010-06-14 15:28:24 -050013
Matthew McClintockf45210d2013-02-18 10:02:19 +000014MINIMAL=
15
16ifdef CONFIG_SPL_BUILD
17ifdef CONFIG_SPL_INIT_MINIMAL
18MINIMAL=y
19endif
20endif
21
22ifdef MINIMAL
23
24COBJS-y += spl_minimal.o tlb.o law.o
25
26else
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#########################################################################