1a47a12beSStefan Roese# 2a47a12beSStefan Roese# (C) Copyright 2006 3a47a12beSStefan Roese# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4a47a12beSStefan Roese# 5a47a12beSStefan Roese# Copyright 2004 Freescale Semiconductor, Inc. 6a47a12beSStefan Roese# 7a47a12beSStefan Roese# See file CREDITS for list of people who contributed to this 8a47a12beSStefan Roese# project. 9a47a12beSStefan Roese# 10a47a12beSStefan Roese# This program is free software; you can redistribute it and/or 11a47a12beSStefan Roese# modify it under the terms of the GNU General Public License as 12a47a12beSStefan Roese# published by the Free Software Foundation; either version 2 of 13a47a12beSStefan Roese# the License, or (at your option) any later version. 14a47a12beSStefan Roese# 15a47a12beSStefan Roese# This program is distributed in the hope that it will be useful, 16a47a12beSStefan Roese# but WITHOUT ANY WARRANTY; without even the implied warranty of 17a47a12beSStefan Roese# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18a47a12beSStefan Roese# GNU General Public License for more details. 19a47a12beSStefan Roese# 20a47a12beSStefan Roese# You should have received a copy of the GNU General Public License 21a47a12beSStefan Roese# along with this program; if not, write to the Free Software 22a47a12beSStefan Roese# Foundation, Inc., 59 Temple Place, Suite 330, Boston, 23a47a12beSStefan Roese# MA 02111-1307 USA 24a47a12beSStefan Roese# 25a47a12beSStefan Roese 26a47a12beSStefan Roeseinclude $(TOPDIR)/config.mk 27a47a12beSStefan Roese 286d8962e8SSebastien CarlierLIB = $(obj)lib$(CPU).o 29a47a12beSStefan Roese 30a47a12beSStefan RoeseSTART = start.o 31a47a12beSStefan Roese 32a47a12beSStefan RoeseCOBJS-y += traps.o 33a47a12beSStefan RoeseCOBJS-y += cpu.o 34a47a12beSStefan RoeseCOBJS-y += cpu_init.o 35a47a12beSStefan RoeseCOBJS-y += speed.o 36a47a12beSStefan RoeseCOBJS-y += interrupts.o 37a47a12beSStefan RoeseCOBJS-y += ecc.o 38a47a12beSStefan RoeseCOBJS-$(CONFIG_QE) += qe_io.o 39a47a12beSStefan RoeseCOBJS-$(CONFIG_FSL_SERDES) += serdes.o 40a47a12beSStefan RoeseCOBJS-$(CONFIG_PCI) += pci.o 41a47a12beSStefan RoeseCOBJS-$(CONFIG_PCIE) += pcie.o 42a47a12beSStefan RoeseCOBJS-$(CONFIG_OF_LIBFDT) += fdt.o 43a47a12beSStefan Roese 44*d29d17d7SYork Sunifdef CONFIG_FSL_DDR2 45*d29d17d7SYork SunCOBJS-$(CONFIG_MPC8349) += ddr-gen2.o 46*d29d17d7SYork Sunelse 47*d29d17d7SYork SunCOBJS-y += spd_sdram.o 48*d29d17d7SYork Sunendif 49*d29d17d7SYork SunCOBJS-$(CONFIG_FSL_DDR2) += law.o 50*d29d17d7SYork Sun 51a47a12beSStefan RoeseCOBJS := $(COBJS-y) 52a47a12beSStefan RoeseSRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c) 53a47a12beSStefan RoeseOBJS := $(addprefix $(obj),$(SOBJS) $(COBJS)) 54a47a12beSStefan RoeseSTART := $(addprefix $(obj),$(START)) 55a47a12beSStefan Roese 56a47a12beSStefan Roeseall: $(obj).depend $(START) $(LIB) 57a47a12beSStefan Roese 58a47a12beSStefan Roese$(LIB): $(OBJS) 596d8962e8SSebastien Carlier $(call cmd_link_o_target, $(OBJS)) 60a47a12beSStefan Roese 61*d29d17d7SYork Sun$(obj)ddr-gen1.c: 62*d29d17d7SYork Sun @rm -f $(obj)ddr-gen1.c 63*d29d17d7SYork Sun ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/ddr-gen1.c $(obj)ddr-gen1.c 64*d29d17d7SYork Sun 65*d29d17d7SYork Sun$(obj)ddr-gen2.c: 66*d29d17d7SYork Sun @rm -f $(obj)ddr-gen2.c 67*d29d17d7SYork Sun ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/ddr-gen2.c $(obj)ddr-gen2.c 68*d29d17d7SYork Sun 69*d29d17d7SYork Sun$(obj)ddr-gen3.c: 70*d29d17d7SYork Sun @rm -f $(obj)ddr-gen3.c 71*d29d17d7SYork Sun ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/ddr-gen3.c $(obj)ddr-gen3.c 72*d29d17d7SYork Sun 73a47a12beSStefan Roese######################################################################### 74a47a12beSStefan Roese 75a47a12beSStefan Roese# defines $(obj).depend target 76a47a12beSStefan Roeseinclude $(SRCTREE)/rules.mk 77a47a12beSStefan Roese 78a47a12beSStefan Roesesinclude $(obj).depend 79a47a12beSStefan Roese 80a47a12beSStefan Roese######################################################################### 81