xref: /openbmc/u-boot/arch/powerpc/cpu/mpc85xx/Makefile (revision 6e87ae1c)
1#
2# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# (C) Copyright 2002,2003 Motorola Inc.
6# Xianghua Xiao,X.Xiao@motorola.com
7#
8# SPDX-License-Identifier:	GPL-2.0+
9#
10
11MINIMAL=
12
13ifdef CONFIG_SPL_BUILD
14ifdef CONFIG_SPL_INIT_MINIMAL
15MINIMAL=y
16endif
17endif
18
19extra-y = start.o resetvec.o
20
21ifdef MINIMAL
22
23obj-y	+= cpu_init_early.o tlb.o spl_minimal.o
24
25else
26
27obj-$(CONFIG_MP)	+= release.o
28
29ifndef CONFIG_SPL_BUILD
30obj-$(CONFIG_CMD_ERRATA) += cmd_errata.o
31endif
32obj-$(CONFIG_CPM2)	+= commproc.o
33
34obj-$(CONFIG_CPM2)	+= ether_fcc.o
35obj-$(CONFIG_OF_LIBFDT) += fdt.o
36obj-$(CONFIG_FSL_CORENET) += liodn.o
37obj-$(CONFIG_MP)	+= mp.o
38obj-$(CONFIG_PCI)	+= pci.o
39obj-$(CONFIG_SYS_DPAA_QBMAN) += portals.o
40
41# various SoC specific assignments
42obj-$(CONFIG_ARCH_P2041) += p2041_ids.o
43obj-$(CONFIG_ARCH_P3041) += p3041_ids.o
44obj-$(CONFIG_ARCH_P4080) += p4080_ids.o
45obj-$(CONFIG_ARCH_P5020) += p5020_ids.o
46obj-$(CONFIG_ARCH_P5040) += p5040_ids.o
47obj-$(CONFIG_ARCH_T4240) += t4240_ids.o
48obj-$(CONFIG_ARCH_T4160) += t4240_ids.o
49obj-$(CONFIG_ARCH_B4420) += b4860_ids.o
50obj-$(CONFIG_ARCH_B4860) += b4860_ids.o
51obj-$(CONFIG_ARCH_T1040) += t1040_ids.o
52obj-$(CONFIG_ARCH_T1042)	+= t1040_ids.o
53obj-$(CONFIG_ARCH_T1023) += t1024_ids.o
54obj-$(CONFIG_ARCH_T1024) += t1024_ids.o
55obj-$(CONFIG_ARCH_T2080) += t2080_ids.o
56obj-$(CONFIG_ARCH_T2081) += t2080_ids.o
57
58
59obj-$(CONFIG_QE)	+= qe_io.o
60obj-$(CONFIG_CPM2)	+= serial_scc.o
61obj-$(CONFIG_SYS_FSL_QORIQ_CHASSIS1) += fsl_corenet_serdes.o
62obj-$(CONFIG_SYS_FSL_QORIQ_CHASSIS2) += fsl_corenet2_serdes.o
63
64# SoC specific SERDES support
65obj-$(CONFIG_ARCH_C29X)	+= c29x_serdes.o
66obj-$(CONFIG_ARCH_MPC8536) += mpc8536_serdes.o
67obj-$(CONFIG_ARCH_MPC8544) += mpc8544_serdes.o
68obj-$(CONFIG_ARCH_MPC8548) += mpc8548_serdes.o
69obj-$(CONFIG_ARCH_MPC8568) += mpc8568_serdes.o
70obj-$(CONFIG_ARCH_MPC8569) += mpc8569_serdes.o
71obj-$(CONFIG_ARCH_MPC8572) += mpc8572_serdes.o
72obj-$(CONFIG_ARCH_P1010)	+= p1010_serdes.o
73obj-$(CONFIG_ARCH_P1011)	+= p1021_serdes.o
74obj-$(CONFIG_ARCH_P1020)	+= p1021_serdes.o
75obj-$(CONFIG_ARCH_P1021)	+= p1021_serdes.o
76obj-$(CONFIG_ARCH_P1022)	+= p1022_serdes.o
77obj-$(CONFIG_ARCH_P1023)	+= p1023_serdes.o
78obj-$(CONFIG_ARCH_P1024)	+= p1021_serdes.o
79obj-$(CONFIG_ARCH_P1025)	+= p1021_serdes.o
80obj-$(CONFIG_ARCH_P2020)	+= p2020_serdes.o
81obj-$(CONFIG_ARCH_P2041) += p2041_serdes.o
82obj-$(CONFIG_ARCH_P3041) += p3041_serdes.o
83obj-$(CONFIG_ARCH_P4080) += p4080_serdes.o
84obj-$(CONFIG_ARCH_P5020) += p5020_serdes.o
85obj-$(CONFIG_ARCH_P5040) += p5040_serdes.o
86obj-$(CONFIG_ARCH_T4240) += t4240_serdes.o
87obj-$(CONFIG_ARCH_T4160) += t4240_serdes.o
88obj-$(CONFIG_ARCH_B4420) += b4860_serdes.o
89obj-$(CONFIG_ARCH_B4860) += b4860_serdes.o
90obj-$(CONFIG_ARCH_BSC9132) += bsc9132_serdes.o
91obj-$(CONFIG_ARCH_T1040) += t1040_serdes.o
92obj-$(CONFIG_ARCH_T1042)	+= t1040_serdes.o
93obj-$(CONFIG_ARCH_T1023) += t1024_serdes.o
94obj-$(CONFIG_ARCH_T1024) += t1024_serdes.o
95obj-$(CONFIG_ARCH_T2080) += t2080_serdes.o
96obj-$(CONFIG_ARCH_T2081) += t2080_serdes.o
97
98obj-y	+= cpu.o
99obj-y	+= cpu_init.o
100obj-y	+= cpu_init_early.o
101obj-y	+= interrupts.o
102ifneq ($(CONFIG_ARCH_QEMU_E500),y)
103obj-y	+= speed.o
104endif
105obj-y	+= tlb.o
106obj-y	+= traps.o
107
108endif # not minimal
109