141d91011SPrabhakar Kushwaha# 241d91011SPrabhakar Kushwaha# Copyright 2013 Freescale Semiconductor, Inc. 341d91011SPrabhakar Kushwaha# 441d91011SPrabhakar Kushwaha# See file CREDITS for list of people who contributed to this 541d91011SPrabhakar Kushwaha# project. 641d91011SPrabhakar Kushwaha# 741d91011SPrabhakar Kushwaha# This program is free software; you can redistribute it and/or 841d91011SPrabhakar Kushwaha# modify it under the terms of the GNU General Public License as 941d91011SPrabhakar Kushwaha# published by the Free Software Foundation; either version 2 of 1041d91011SPrabhakar Kushwaha# the License, or (at your option) any later version. 1141d91011SPrabhakar Kushwaha# 1241d91011SPrabhakar Kushwaha# This program is distributed in the hope that it will be useful, 1341d91011SPrabhakar Kushwaha# but WITHOUT ANY WARRANTY; without even the implied warranty of 1441d91011SPrabhakar Kushwaha# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the 1541d91011SPrabhakar Kushwaha# GNU General Public License for more details. 1641d91011SPrabhakar Kushwaha# 1741d91011SPrabhakar Kushwaha# You should have received a copy of the GNU General Public License 1841d91011SPrabhakar Kushwaha# along with this program; if not, write to the Free Software 1941d91011SPrabhakar Kushwaha# Foundation, Inc., 59 Temple Place, Suite 330, Boston, 2041d91011SPrabhakar Kushwaha# MA 02111-1307 USA 2141d91011SPrabhakar Kushwaha# 2241d91011SPrabhakar Kushwaha 2341d91011SPrabhakar Kushwahainclude $(TOPDIR)/config.mk 2441d91011SPrabhakar Kushwaha 2541d91011SPrabhakar KushwahaLIB = $(obj)lib$(BOARD).o 2641d91011SPrabhakar Kushwaha 27*83e0c2bbSPrabhakar KushwahaMINIMAL= 28*83e0c2bbSPrabhakar Kushwaha 29*83e0c2bbSPrabhakar Kushwahaifdef CONFIG_SPL_BUILD 30*83e0c2bbSPrabhakar Kushwahaifdef CONFIG_SPL_INIT_MINIMAL 31*83e0c2bbSPrabhakar KushwahaMINIMAL=y 32*83e0c2bbSPrabhakar Kushwahaendif 33*83e0c2bbSPrabhakar Kushwahaendif 34*83e0c2bbSPrabhakar Kushwaha 35*83e0c2bbSPrabhakar Kushwahaifdef MINIMAL 36*83e0c2bbSPrabhakar Kushwaha 37*83e0c2bbSPrabhakar KushwahaCOBJS-y += spl_minimal.o tlb.o law.o 38*83e0c2bbSPrabhakar Kushwaha 39*83e0c2bbSPrabhakar Kushwahaelse 40*83e0c2bbSPrabhakar Kushwaha 41*83e0c2bbSPrabhakar Kushwaha 4241d91011SPrabhakar KushwahaCOBJS-y += $(BOARD).o 4341d91011SPrabhakar KushwahaCOBJS-y += ddr.o 4441d91011SPrabhakar KushwahaCOBJS-y += law.o 4541d91011SPrabhakar KushwahaCOBJS-y += tlb.o 4641d91011SPrabhakar Kushwaha 47*83e0c2bbSPrabhakar Kushwahaendif 48*83e0c2bbSPrabhakar Kushwaha 4941d91011SPrabhakar KushwahaSRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) 5041d91011SPrabhakar KushwahaOBJS := $(addprefix $(obj),$(COBJS-y)) 5141d91011SPrabhakar KushwahaSOBJS := $(addprefix $(obj),$(SOBJS)) 5241d91011SPrabhakar Kushwaha 5341d91011SPrabhakar Kushwaha$(LIB): $(obj).depend $(OBJS) $(SOBJS) 5441d91011SPrabhakar Kushwaha $(call cmd_link_o_target, $(OBJS)) 5541d91011SPrabhakar Kushwaha 5641d91011SPrabhakar Kushwahaclean: 5741d91011SPrabhakar Kushwaha rm -f $(OBJS) $(SOBJS) 5841d91011SPrabhakar Kushwaha 5941d91011SPrabhakar Kushwahadistclean: clean 6041d91011SPrabhakar Kushwaha rm -f $(LIB) core *.bak .depend 6141d91011SPrabhakar Kushwaha 6241d91011SPrabhakar Kushwaha######################################################################### 6341d91011SPrabhakar Kushwaha 6441d91011SPrabhakar Kushwaha# defines $(obj).depend target 6541d91011SPrabhakar Kushwahainclude $(SRCTREE)/rules.mk 6641d91011SPrabhakar Kushwaha 6741d91011SPrabhakar Kushwahasinclude $(obj).depend 6841d91011SPrabhakar Kushwaha 6941d91011SPrabhakar Kushwaha######################################################################### 70