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