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*25315683SMarek Vasut# Stub implementations of cache management functions for USB 45*25315683SMarek VasutCOBJS-$(CONFIG_USB_EHCI) += cache.o 46*25315683SMarek Vasut 47d29d17d7SYork Sunifdef CONFIG_FSL_DDR2 482d14e36aSYork SunCOBJS_LN-$(CONFIG_MPC8349) += ddr-gen2.o 49d29d17d7SYork Sunelse 50d29d17d7SYork SunCOBJS-y += spd_sdram.o 51d29d17d7SYork Sunendif 52d29d17d7SYork SunCOBJS-$(CONFIG_FSL_DDR2) += law.o 53d29d17d7SYork Sun 54a47a12beSStefan RoeseCOBJS := $(COBJS-y) 552d14e36aSYork SunSRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c) $(addprefix $(obj),$(COBJS_LN-y:.o=.c)) 562d14e36aSYork SunOBJS := $(addprefix $(obj),$(SOBJS) $(COBJS) $(COBJS_LN-y)) 57a47a12beSStefan RoeseSTART := $(addprefix $(obj),$(START)) 58a47a12beSStefan Roese 59a47a12beSStefan Roeseall: $(obj).depend $(START) $(LIB) 60a47a12beSStefan Roese 61a47a12beSStefan Roese$(LIB): $(OBJS) 626d8962e8SSebastien Carlier $(call cmd_link_o_target, $(OBJS)) 63a47a12beSStefan Roese 64d29d17d7SYork Sun$(obj)ddr-gen1.c: 65d29d17d7SYork Sun ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/ddr-gen1.c $(obj)ddr-gen1.c 66d29d17d7SYork Sun 67d29d17d7SYork Sun$(obj)ddr-gen2.c: 68d29d17d7SYork Sun ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/ddr-gen2.c $(obj)ddr-gen2.c 69d29d17d7SYork Sun 70d29d17d7SYork Sun$(obj)ddr-gen3.c: 71d29d17d7SYork Sun ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/ddr-gen3.c $(obj)ddr-gen3.c 72d29d17d7SYork 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