xref: /openbmc/u-boot/board/samsung/smdkv310/Makefile (revision 5187d8dd)
1e21185baSChander Kashyap#
2e21185baSChander Kashyap# Copyright (C) 2011 Samsung Electronics
3e21185baSChander Kashyap#
4e21185baSChander Kashyap# See file CREDITS for list of people who contributed to this
5e21185baSChander Kashyap# project.
6e21185baSChander Kashyap#
7e21185baSChander Kashyap# This program is free software; you can redistribute it and/or
8e21185baSChander Kashyap# modify it under the terms of the GNU General Public License as
9e21185baSChander Kashyap# published by the Free Software Foundation; either version 2 of
10e21185baSChander Kashyap# the License, or (at your option) any later version.
11e21185baSChander Kashyap#
12e21185baSChander Kashyap# This program is distributed in the hope that it will be useful,
13e21185baSChander Kashyap# but WITHOUT ANY WARRANTY; without even the implied warranty of
14e21185baSChander Kashyap# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15e21185baSChander Kashyap# GNU General Public License for more details.
16e21185baSChander Kashyap#
17e21185baSChander Kashyap# You should have received a copy of the GNU General Public License
18e21185baSChander Kashyap# along with this program; if not, write to the Free Software
19e21185baSChander Kashyap# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
20e21185baSChander Kashyap# MA 02111-1307 USA
21e21185baSChander Kashyap#
22e21185baSChander Kashyap
23e21185baSChander Kashyapinclude $(TOPDIR)/config.mk
24e21185baSChander Kashyap
25e21185baSChander KashyapLIB	= $(obj)lib$(BOARD).o
26e21185baSChander Kashyap
27e21185baSChander KashyapSOBJS	:= mem_setup.o
28e21185baSChander KashyapSOBJS	+= lowlevel_init.o
29*5187d8ddSChander Kashyapifndef CONFIG_SPL_BUILD
30e21185baSChander KashyapCOBJS	+= smdkv310.o
31*5187d8ddSChander Kashyapendif
32*5187d8ddSChander Kashyap
33*5187d8ddSChander Kashyapifdef CONFIG_SPL_BUILD
34*5187d8ddSChander KashyapCOBJS	+= mmc_boot.o
35*5187d8ddSChander Kashyapendif
36e21185baSChander Kashyap
37e21185baSChander KashyapSRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
38e21185baSChander KashyapOBJS	:= $(addprefix $(obj),$(COBJS) $(SOBJS))
39e21185baSChander Kashyap
40*5187d8ddSChander KashyapALL	:=	 $(obj).depend $(LIB)
41*5187d8ddSChander Kashyap
42*5187d8ddSChander Kashyapifdef CONFIG_SPL_BUILD
43*5187d8ddSChander KashyapALL	+= $(OBJTREE)/tools/mk$(BOARD)spl
44*5187d8ddSChander Kashyapendif
45*5187d8ddSChander Kashyap
46*5187d8ddSChander Kashyapall:	$(ALL)
47e21185baSChander Kashyap
48e21185baSChander Kashyap$(LIB):	$(OBJS)
4926ddff2dSMike Frysinger	$(call cmd_link_o_target, $(OBJS))
50e21185baSChander Kashyap
51*5187d8ddSChander Kashyapifdef CONFIG_SPL_BUILD
52*5187d8ddSChander Kashyap$(OBJTREE)/tools/mk$(BOARD)spl:	tools/mkv310_image.c
53*5187d8ddSChander Kashyap	$(HOSTCC) tools/mkv310_image.c -o $(OBJTREE)/tools/mk$(BOARD)spl
54*5187d8ddSChander Kashyapendif
55*5187d8ddSChander Kashyap
56e21185baSChander Kashyap#########################################################################
57e21185baSChander Kashyap
58e21185baSChander Kashyap# defines $(obj).depend target
59e21185baSChander Kashyapinclude $(SRCTREE)/rules.mk
60e21185baSChander Kashyap
61e21185baSChander Kashyapsinclude $(obj).depend
62e21185baSChander Kashyap
63e21185baSChander Kashyap#########################################################################
64