2003-10-15 23:53:47 +00:00
|
|
|
#
|
2006-09-01 17:49:50 +00:00
|
|
|
# (C) Copyright 2006
|
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
#
|
2003-10-15 23:53:47 +00:00
|
|
|
# (C) Copyright 2002,2003 Motorola Inc.
|
|
|
|
# Xianghua Xiao,X.Xiao@motorola.com
|
|
|
|
#
|
|
|
|
# See file CREDITS for list of people who contributed to this
|
|
|
|
# project.
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License as
|
|
|
|
# published by the Free Software Foundation; either version 2 of
|
|
|
|
# the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
|
|
# MA 02111-1307 USA
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
|
2010-11-05 14:48:07 +00:00
|
|
|
LIB = $(obj)lib$(CPU).o
|
2003-10-15 23:53:47 +00:00
|
|
|
|
|
|
|
START = start.o resetvec.o
|
2009-09-02 14:00:50 +00:00
|
|
|
SOBJS-$(CONFIG_MP) += release.o
|
2008-01-17 22:48:33 +00:00
|
|
|
SOBJS = $(SOBJS-y)
|
2009-09-02 14:00:50 +00:00
|
|
|
|
2010-06-10 03:59:41 +00:00
|
|
|
COBJS-$(CONFIG_CMD_ERRATA) += cmd_errata.o
|
2009-09-02 14:00:50 +00:00
|
|
|
COBJS-$(CONFIG_CPM2) += commproc.o
|
2008-08-26 20:01:29 +00:00
|
|
|
|
2008-08-27 02:34:55 +00:00
|
|
|
# supports ddr1
|
|
|
|
COBJS-$(CONFIG_MPC8540) += ddr-gen1.o
|
|
|
|
COBJS-$(CONFIG_MPC8560) += ddr-gen1.o
|
|
|
|
COBJS-$(CONFIG_MPC8541) += ddr-gen1.o
|
|
|
|
COBJS-$(CONFIG_MPC8555) += ddr-gen1.o
|
|
|
|
|
|
|
|
# supports ddr1/2
|
|
|
|
COBJS-$(CONFIG_MPC8548) += ddr-gen2.o
|
|
|
|
COBJS-$(CONFIG_MPC8568) += ddr-gen2.o
|
|
|
|
COBJS-$(CONFIG_MPC8544) += ddr-gen2.o
|
|
|
|
|
|
|
|
# supports ddr1/2/3
|
|
|
|
COBJS-$(CONFIG_MPC8572) += ddr-gen3.o
|
|
|
|
COBJS-$(CONFIG_MPC8536) += ddr-gen3.o
|
2009-03-27 21:02:44 +00:00
|
|
|
COBJS-$(CONFIG_MPC8569) += ddr-gen3.o
|
2011-01-13 16:09:27 +00:00
|
|
|
COBJS-$(CONFIG_P1010) += ddr-gen3.o
|
2009-08-20 13:27:45 +00:00
|
|
|
COBJS-$(CONFIG_P1011) += ddr-gen3.o
|
2010-03-31 04:06:53 +00:00
|
|
|
COBJS-$(CONFIG_P1012) += ddr-gen3.o
|
|
|
|
COBJS-$(CONFIG_P1013) += ddr-gen3.o
|
2011-01-13 16:10:05 +00:00
|
|
|
COBJS-$(CONFIG_P1014) += ddr-gen3.o
|
2011-02-05 19:45:07 +00:00
|
|
|
COBJS-$(CONFIG_P1015) += ddr-gen3.o
|
|
|
|
COBJS-$(CONFIG_P1016) += ddr-gen3.o
|
2009-07-31 06:38:27 +00:00
|
|
|
COBJS-$(CONFIG_P1020) += ddr-gen3.o
|
2010-03-31 04:06:53 +00:00
|
|
|
COBJS-$(CONFIG_P1021) += ddr-gen3.o
|
|
|
|
COBJS-$(CONFIG_P1022) += ddr-gen3.o
|
2011-02-05 19:45:07 +00:00
|
|
|
COBJS-$(CONFIG_P1024) += ddr-gen3.o
|
|
|
|
COBJS-$(CONFIG_P1025) += ddr-gen3.o
|
2009-08-20 13:27:45 +00:00
|
|
|
COBJS-$(CONFIG_P2010) += ddr-gen3.o
|
|
|
|
COBJS-$(CONFIG_P2020) += ddr-gen3.o
|
2011-04-15 07:18:03 +00:00
|
|
|
COBJS-$(CONFIG_PPC_P2040) += ddr-gen3.o
|
2011-05-13 06:16:07 +00:00
|
|
|
COBJS-$(CONFIG_PPC_P2041) += ddr-gen3.o
|
2010-01-27 16:26:46 +00:00
|
|
|
COBJS-$(CONFIG_PPC_P3041) += ddr-gen3.o
|
2011-08-31 09:48:18 +00:00
|
|
|
COBJS-$(CONFIG_PPC_P3060) += ddr-gen3.o
|
2009-03-19 07:39:17 +00:00
|
|
|
COBJS-$(CONFIG_PPC_P4080) += ddr-gen3.o
|
2009-10-21 18:32:58 +00:00
|
|
|
COBJS-$(CONFIG_PPC_P5020) += ddr-gen3.o
|
2008-08-26 20:01:29 +00:00
|
|
|
|
2009-09-02 14:00:50 +00:00
|
|
|
COBJS-$(CONFIG_CPM2) += ether_fcc.o
|
|
|
|
COBJS-$(CONFIG_OF_LIBFDT) += fdt.o
|
2009-09-10 08:02:13 +00:00
|
|
|
COBJS-$(CONFIG_FSL_CORENET) += liodn.o
|
2009-09-02 14:00:50 +00:00
|
|
|
COBJS-$(CONFIG_MP) += mp.o
|
|
|
|
COBJS-$(CONFIG_PCI) += pci.o
|
2011-01-20 22:26:31 +00:00
|
|
|
COBJS-$(CONFIG_SYS_DPAA_QBMAN) += portals.o
|
2009-09-10 08:02:13 +00:00
|
|
|
|
|
|
|
# various SoC specific assignments
|
2011-07-21 05:20:19 +00:00
|
|
|
COBJS-$(CONFIG_PPC_P2040) += p2041_ids.o
|
|
|
|
COBJS-$(CONFIG_PPC_P2041) += p2041_ids.o
|
2010-07-04 18:07:08 +00:00
|
|
|
COBJS-$(CONFIG_PPC_P3041) += p3041_ids.o
|
2011-08-31 09:48:18 +00:00
|
|
|
COBJS-$(CONFIG_PPC_P3060) += p3060_ids.o
|
2009-09-10 08:02:13 +00:00
|
|
|
COBJS-$(CONFIG_PPC_P4080) += p4080_ids.o
|
2010-07-08 10:24:44 +00:00
|
|
|
COBJS-$(CONFIG_PPC_P5020) += p5020_ids.o
|
2009-09-10 08:02:13 +00:00
|
|
|
|
2009-09-02 14:00:50 +00:00
|
|
|
COBJS-$(CONFIG_QE) += qe_io.o
|
|
|
|
COBJS-$(CONFIG_CPM2) += serial_scc.o
|
2010-07-13 03:51:29 +00:00
|
|
|
COBJS-$(CONFIG_FSL_CORENET) += fsl_corenet_serdes.o
|
2010-12-15 10:07:55 +00:00
|
|
|
|
|
|
|
# SoC specific SERDES support
|
|
|
|
COBJS-$(CONFIG_MPC8536) += mpc8536_serdes.o
|
2010-04-27 14:20:20 +00:00
|
|
|
COBJS-$(CONFIG_MPC8544) += mpc8544_serdes.o
|
2010-04-27 04:25:33 +00:00
|
|
|
COBJS-$(CONFIG_MPC8548) += mpc8548_serdes.o
|
2010-04-27 04:44:10 +00:00
|
|
|
COBJS-$(CONFIG_MPC8568) += mpc8568_serdes.o
|
2010-04-27 05:05:41 +00:00
|
|
|
COBJS-$(CONFIG_MPC8569) += mpc8569_serdes.o
|
2010-04-27 04:09:23 +00:00
|
|
|
COBJS-$(CONFIG_MPC8572) += mpc8572_serdes.o
|
2011-01-20 11:04:41 +00:00
|
|
|
COBJS-$(CONFIG_P1010) += p1010_serdes.o
|
2010-12-15 10:04:56 +00:00
|
|
|
COBJS-$(CONFIG_P1011) += p1021_serdes.o
|
|
|
|
COBJS-$(CONFIG_P1012) += p1021_serdes.o
|
2011-02-04 18:50:53 +00:00
|
|
|
COBJS-$(CONFIG_P1013) += p1022_serdes.o
|
2011-01-20 11:04:41 +00:00
|
|
|
COBJS-$(CONFIG_P1014) += p1010_serdes.o
|
2011-02-05 19:45:07 +00:00
|
|
|
COBJS-$(CONFIG_P1015) += p1021_serdes.o
|
|
|
|
COBJS-$(CONFIG_P1016) += p1021_serdes.o
|
2011-02-04 04:14:19 +00:00
|
|
|
COBJS-$(CONFIG_P1017) += p1023_serdes.o
|
2010-12-15 10:04:56 +00:00
|
|
|
COBJS-$(CONFIG_P1020) += p1021_serdes.o
|
|
|
|
COBJS-$(CONFIG_P1021) += p1021_serdes.o
|
2010-12-15 10:07:55 +00:00
|
|
|
COBJS-$(CONFIG_P1022) += p1022_serdes.o
|
2011-02-04 04:14:19 +00:00
|
|
|
COBJS-$(CONFIG_P1023) += p1023_serdes.o
|
2011-02-05 19:45:07 +00:00
|
|
|
COBJS-$(CONFIG_P1024) += p1021_serdes.o
|
|
|
|
COBJS-$(CONFIG_P1025) += p1021_serdes.o
|
2010-12-15 08:49:03 +00:00
|
|
|
COBJS-$(CONFIG_P2010) += p2020_serdes.o
|
|
|
|
COBJS-$(CONFIG_P2020) += p2020_serdes.o
|
2011-07-21 05:20:19 +00:00
|
|
|
COBJS-$(CONFIG_PPC_P2040) += p2041_serdes.o
|
2011-05-13 06:16:07 +00:00
|
|
|
COBJS-$(CONFIG_PPC_P2041) += p2041_serdes.o
|
2010-07-04 18:07:08 +00:00
|
|
|
COBJS-$(CONFIG_PPC_P3041) += p3041_serdes.o
|
2011-08-31 09:48:18 +00:00
|
|
|
COBJS-$(CONFIG_PPC_P3060) += p3060_serdes.o
|
2010-07-13 03:51:29 +00:00
|
|
|
COBJS-$(CONFIG_PPC_P4080) += p4080_serdes.o
|
2010-07-08 10:24:44 +00:00
|
|
|
COBJS-$(CONFIG_PPC_P5020) += p5020_serdes.o
|
2009-09-02 14:00:50 +00:00
|
|
|
|
|
|
|
COBJS = $(COBJS-y)
|
|
|
|
COBJS += cpu.o
|
|
|
|
COBJS += cpu_init.o
|
2009-09-11 18:52:45 +00:00
|
|
|
COBJS += cpu_init_early.o
|
2009-09-02 14:00:50 +00:00
|
|
|
COBJS += interrupts.o
|
|
|
|
COBJS += speed.o
|
|
|
|
COBJS += tlb.o
|
|
|
|
COBJS += traps.o
|
2003-10-15 23:53:47 +00:00
|
|
|
|
2006-09-01 17:49:50 +00:00
|
|
|
SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
|
|
|
|
OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
|
|
|
|
START := $(addprefix $(obj),$(START))
|
|
|
|
|
|
|
|
all: $(obj).depend $(START) $(LIB)
|
2003-10-15 23:53:47 +00:00
|
|
|
|
|
|
|
$(LIB): $(OBJS)
|
2010-11-05 14:48:07 +00:00
|
|
|
$(call cmd_link_o_target, $(OBJS))
|
2003-10-15 23:53:47 +00:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
|
2006-09-01 17:49:50 +00:00
|
|
|
# defines $(obj).depend target
|
|
|
|
include $(SRCTREE)/rules.mk
|
2003-10-15 23:53:47 +00:00
|
|
|
|
2006-09-01 17:49:50 +00:00
|
|
|
sinclude $(obj).depend
|
2003-10-15 23:53:47 +00:00
|
|
|
|
|
|
|
#########################################################################
|