xref: /openbmc/u-boot/arch/powerpc/cpu/mpc83xx/Makefile (revision 06f60ae3)
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
30*06f60ae3SScott WoodMINIMAL=
31*06f60ae3SScott Wood
32*06f60ae3SScott Woodifdef CONFIG_SPL_BUILD
33*06f60ae3SScott Woodifdef CONFIG_SPL_INIT_MINIMAL
34*06f60ae3SScott WoodMINIMAL=y
35*06f60ae3SScott Woodendif
36*06f60ae3SScott Woodendif
37*06f60ae3SScott Wood
38a47a12beSStefan RoeseSTART	= start.o
39a47a12beSStefan Roese
40*06f60ae3SScott Woodifdef MINIMAL
41*06f60ae3SScott Wood
42*06f60ae3SScott WoodCOBJS-y	+= spl_minimal.o
43*06f60ae3SScott Wood
44*06f60ae3SScott Woodelse
45*06f60ae3SScott Wood
46a47a12beSStefan RoeseCOBJS-y += traps.o
47a47a12beSStefan RoeseCOBJS-y += cpu.o
48a47a12beSStefan RoeseCOBJS-y += cpu_init.o
49a47a12beSStefan RoeseCOBJS-y += speed.o
50a47a12beSStefan RoeseCOBJS-y += interrupts.o
51a47a12beSStefan RoeseCOBJS-y += ecc.o
52a47a12beSStefan RoeseCOBJS-$(CONFIG_QE) += qe_io.o
53a47a12beSStefan RoeseCOBJS-$(CONFIG_FSL_SERDES) += serdes.o
54a47a12beSStefan RoeseCOBJS-$(CONFIG_PCI) += pci.o
55a47a12beSStefan RoeseCOBJS-$(CONFIG_PCIE) += pcie.o
56a47a12beSStefan RoeseCOBJS-$(CONFIG_OF_LIBFDT) += fdt.o
57a47a12beSStefan Roese
5825315683SMarek Vasut# Stub implementations of cache management functions for USB
59569fadcdSStefano BabicCOBJS-y += cache.o
6025315683SMarek Vasut
61d29d17d7SYork Sunifdef CONFIG_FSL_DDR2
622d14e36aSYork SunCOBJS_LN-$(CONFIG_MPC8349) += ddr-gen2.o
63d29d17d7SYork Sunelse
64d29d17d7SYork SunCOBJS-y += spd_sdram.o
65d29d17d7SYork Sunendif
66d29d17d7SYork SunCOBJS-$(CONFIG_FSL_DDR2) += law.o
67d29d17d7SYork Sun
68*06f60ae3SScott Woodendif # not minimal
69*06f60ae3SScott Wood
70a47a12beSStefan RoeseCOBJS	:= $(COBJS-y)
712d14e36aSYork SunSRCS	:= $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c) $(addprefix $(obj),$(COBJS_LN-y:.o=.c))
722d14e36aSYork SunOBJS	:= $(addprefix $(obj),$(SOBJS) $(COBJS) $(COBJS_LN-y))
73a47a12beSStefan RoeseSTART	:= $(addprefix $(obj),$(START))
74a47a12beSStefan Roese
75a47a12beSStefan Roeseall:	$(obj).depend $(START) $(LIB)
76a47a12beSStefan Roese
77a47a12beSStefan Roese$(LIB):	$(OBJS)
786d8962e8SSebastien Carlier	$(call cmd_link_o_target, $(OBJS))
79a47a12beSStefan Roese
80d29d17d7SYork Sun$(obj)ddr-gen1.c:
81d29d17d7SYork Sun	ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/ddr-gen1.c $(obj)ddr-gen1.c
82d29d17d7SYork Sun
83d29d17d7SYork Sun$(obj)ddr-gen2.c:
84d29d17d7SYork Sun	ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/ddr-gen2.c $(obj)ddr-gen2.c
85d29d17d7SYork Sun
86d29d17d7SYork Sun$(obj)ddr-gen3.c:
87d29d17d7SYork Sun	ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/ddr-gen3.c $(obj)ddr-gen3.c
88d29d17d7SYork Sun
89a47a12beSStefan Roese#########################################################################
90a47a12beSStefan Roese
91a47a12beSStefan Roese# defines $(obj).depend target
92a47a12beSStefan Roeseinclude $(SRCTREE)/rules.mk
93a47a12beSStefan Roese
94a47a12beSStefan Roesesinclude $(obj).depend
95a47a12beSStefan Roese
96a47a12beSStefan Roese#########################################################################
97