1# SPDX-License-Identifier: GPL-2.0+
2#
3# (C) Copyright 2006
4# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5#
6# Copyright 2004 Freescale Semiconductor, Inc.
7
8MINIMAL=
9
10ifdef CONFIG_SPL_BUILD
11ifndef CONFIG_TPL_BUILD
12ifdef CONFIG_SPL_INIT_MINIMAL
13MINIMAL=y
14endif
15endif
16endif
17
18extra-y	= start.o
19
20ifdef MINIMAL
21
22obj-y	+= spl_minimal.o
23
24else
25
26obj-y += traps.o
27obj-y += cpu.o
28obj-y += cpu_init.o
29obj-y += speed.o
30obj-y += interrupts.o
31obj-$(CONFIG_DDR_ECC_CMD) += ecc.o
32ifndef CONFIG_PINCTRL
33obj-$(CONFIG_QE) += qe_io.o
34endif
35obj-$(CONFIG_FSL_SERDES) += serdes.o
36ifndef CONFIG_ARCH_MPC8308
37obj-$(CONFIG_PCI) += pci.o
38endif
39obj-$(CONFIG_PCIE) += pcie.o
40obj-$(CONFIG_OF_LIBFDT) += fdt.o
41
42ifndef CONFIG_SYS_FSL_DDRC_GEN2
43obj-y += spd_sdram.o
44endif
45obj-$(CONFIG_SYS_FSL_DDR2) += law.o
46
47endif # not minimal
48