blob: 7c4ef7657e5bf4875a1969e5e38a05fe2aeb5a36 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Eran Liberty9095d4a2005-07-28 10:08:46 -05002#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02003# (C) Copyright 2006
4# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
Wolfgang Denk4df0da52006-10-09 00:42:01 +02005#
Eran Liberty9095d4a2005-07-28 10:08:46 -05006# Copyright 2004 Freescale Semiconductor, Inc.
Eran Liberty9095d4a2005-07-28 10:08:46 -05007
Scott Wood2b36fbb2012-12-06 13:33:17 +00008MINIMAL=
9
10ifdef CONFIG_SPL_BUILD
11ifdef CONFIG_SPL_INIT_MINIMAL
12MINIMAL=y
13endif
14endif
15
Masahiro Yamada4fbb29d2013-10-17 17:35:04 +090016extra-y = start.o
Anton Vorontsov6e4404d2008-03-24 17:40:27 +030017
Scott Wood2b36fbb2012-12-06 13:33:17 +000018ifdef MINIMAL
19
Masahiro Yamada4fbb29d2013-10-17 17:35:04 +090020obj-y += spl_minimal.o
Scott Wood2b36fbb2012-12-06 13:33:17 +000021
22else
23
Masahiro Yamada4fbb29d2013-10-17 17:35:04 +090024obj-y += traps.o
25obj-y += cpu.o
26obj-y += cpu_init.o
27obj-y += speed.o
28obj-y += interrupts.o
Tom Rini468c2d52021-08-21 13:50:18 -040029obj-$(CONFIG_DDR_ECC_CMD) += ecc.o
Heiko Schocher3b07a132020-02-03 10:23:53 +010030ifndef CONFIG_PINCTRL
Masahiro Yamada4fbb29d2013-10-17 17:35:04 +090031obj-$(CONFIG_QE) += qe_io.o
Heiko Schocher3b07a132020-02-03 10:23:53 +010032endif
Masahiro Yamada4fbb29d2013-10-17 17:35:04 +090033obj-$(CONFIG_FSL_SERDES) += serdes.o
Mario Sixe9c932d2019-01-21 09:18:04 +010034ifndef CONFIG_ARCH_MPC8308
Masahiro Yamada4fbb29d2013-10-17 17:35:04 +090035obj-$(CONFIG_PCI) += pci.o
Mario Sixe9c932d2019-01-21 09:18:04 +010036endif
Masahiro Yamada4fbb29d2013-10-17 17:35:04 +090037obj-$(CONFIG_PCIE) += pcie.o
38obj-$(CONFIG_OF_LIBFDT) += fdt.o
Eran Liberty9095d4a2005-07-28 10:08:46 -050039
York Sun5f650502013-12-03 13:16:59 -080040ifndef CONFIG_SYS_FSL_DDRC_GEN2
Masahiro Yamada4fbb29d2013-10-17 17:35:04 +090041obj-y += spd_sdram.o
York Sune12ce982011-08-26 11:32:44 -070042endif
York Sunf0626592013-09-30 09:22:09 -070043obj-$(CONFIG_SYS_FSL_DDR2) += law.o
York Sune12ce982011-08-26 11:32:44 -070044
Scott Wood2b36fbb2012-12-06 13:33:17 +000045endif # not minimal