149249e13SPoonam Aggrwal# 249249e13SPoonam Aggrwal# Copyright 2010-2011 Freescale Semiconductor, Inc. 349249e13SPoonam Aggrwal# 449249e13SPoonam Aggrwal# See file CREDITS for list of people who contributed to this 549249e13SPoonam Aggrwal# project. 649249e13SPoonam Aggrwal# 749249e13SPoonam Aggrwal# This program is free software; you can redistribute it and/or 849249e13SPoonam Aggrwal# modify it under the terms of the GNU General Public License as 949249e13SPoonam Aggrwal# published by the Free Software Foundation; either version 2 of 1049249e13SPoonam Aggrwal# the License, or (at your option) any later version. 1149249e13SPoonam Aggrwal# 1249249e13SPoonam Aggrwal# This program is distributed in the hope that it will be useful, 1349249e13SPoonam Aggrwal# but WITHOUT ANY WARRANTY; without even the implied warranty of 1449249e13SPoonam Aggrwal# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the 1549249e13SPoonam Aggrwal# GNU General Public License for more details. 1649249e13SPoonam Aggrwal# 1749249e13SPoonam Aggrwal# You should have received a copy of the GNU General Public License 1849249e13SPoonam Aggrwal# along with this program; if not, write to the Free Software 1949249e13SPoonam Aggrwal# Foundation, Inc., 59 Temple Place, Suite 330, Boston, 2049249e13SPoonam Aggrwal# MA 02111-1307 USA 2149249e13SPoonam Aggrwal# 2249249e13SPoonam Aggrwal 2349249e13SPoonam Aggrwalinclude $(TOPDIR)/config.mk 2449249e13SPoonam Aggrwal 2549249e13SPoonam AggrwalLIB = $(obj)lib$(BOARD).o 2649249e13SPoonam Aggrwal 27*0fa934d2SPrabhakar KushwahaMINIMAL= 28*0fa934d2SPrabhakar Kushwaha 29*0fa934d2SPrabhakar Kushwahaifdef CONFIG_SPL_BUILD 30*0fa934d2SPrabhakar Kushwahaifdef CONFIG_SPL_INIT_MINIMAL 31*0fa934d2SPrabhakar KushwahaMINIMAL=y 32*0fa934d2SPrabhakar Kushwahaendif 33*0fa934d2SPrabhakar Kushwahaendif 34*0fa934d2SPrabhakar Kushwaha 35*0fa934d2SPrabhakar Kushwahaifdef MINIMAL 36*0fa934d2SPrabhakar Kushwaha 37*0fa934d2SPrabhakar KushwahaCOBJS-y += spl_minimal.o tlb.o law.o 38*0fa934d2SPrabhakar Kushwaha 39*0fa934d2SPrabhakar Kushwahaelse 40*0fa934d2SPrabhakar Kushwaha 4149249e13SPoonam AggrwalCOBJS-y += $(BOARD).o 4249249e13SPoonam AggrwalCOBJS-y += ddr.o 4349249e13SPoonam AggrwalCOBJS-y += law.o 4449249e13SPoonam AggrwalCOBJS-y += tlb.o 4549249e13SPoonam Aggrwal 46*0fa934d2SPrabhakar Kushwahaendif 47*0fa934d2SPrabhakar Kushwaha 4849249e13SPoonam AggrwalSRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) 4949249e13SPoonam AggrwalOBJS := $(addprefix $(obj),$(COBJS-y)) 5049249e13SPoonam AggrwalSOBJS := $(addprefix $(obj),$(SOBJS)) 5149249e13SPoonam Aggrwal 5249249e13SPoonam Aggrwal$(LIB): $(obj).depend $(OBJS) $(SOBJS) 5349249e13SPoonam Aggrwal $(call cmd_link_o_target, $(OBJS)) 5449249e13SPoonam Aggrwal 5549249e13SPoonam Aggrwal######################################################################### 5649249e13SPoonam Aggrwal 5749249e13SPoonam Aggrwal# defines $(obj).depend target 5849249e13SPoonam Aggrwalinclude $(SRCTREE)/rules.mk 5949249e13SPoonam Aggrwal 6049249e13SPoonam Aggrwalsinclude $(obj).depend 6149249e13SPoonam Aggrwal 6249249e13SPoonam Aggrwal######################################################################### 63