blob: 1255f533e343ea24b2f84f23e76c2970efc64693 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Eran Libertyf046ccd2005-07-28 10:08:46 -05002#
Marian Balakowiczf9328632006-09-01 19:49:50 +02003# (C) Copyright 2006
4# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
Wolfgang Denk511d0c72006-10-09 00:42:01 +02005#
Eran Libertyf046ccd2005-07-28 10:08:46 -05006# Copyright 2004 Freescale Semiconductor, Inc.
Eran Libertyf046ccd2005-07-28 10:08:46 -05007
Scott Wood06f60ae2012-12-06 13:33:17 +00008MINIMAL=
9
10ifdef CONFIG_SPL_BUILD
Tom Rinib35316f2022-05-13 12:26:35 -040011ifndef CONFIG_TPL_BUILD
Scott Wood06f60ae2012-12-06 13:33:17 +000012ifdef CONFIG_SPL_INIT_MINIMAL
13MINIMAL=y
14endif
15endif
Tom Rinib35316f2022-05-13 12:26:35 -040016endif
Scott Wood06f60ae2012-12-06 13:33:17 +000017
Masahiro Yamada06c14112013-10-17 17:35:04 +090018extra-y = start.o
Eran Libertyf046ccd2005-07-28 10:08:46 -050019
Scott Wood06f60ae2012-12-06 13:33:17 +000020ifdef MINIMAL
21
Masahiro Yamada06c14112013-10-17 17:35:04 +090022obj-y += spl_minimal.o
Scott Wood06f60ae2012-12-06 13:33:17 +000023
24else
25
Masahiro Yamada06c14112013-10-17 17:35:04 +090026obj-y += traps.o
27obj-y += cpu.o
28obj-y += cpu_init.o
29obj-y += speed.o
30obj-y += interrupts.o
Tom Rini95372162021-08-21 13:50:18 -040031obj-$(CONFIG_DDR_ECC_CMD) += ecc.o
Heiko Schocher5990b052020-02-03 10:23:53 +010032ifndef CONFIG_PINCTRL
Masahiro Yamada06c14112013-10-17 17:35:04 +090033obj-$(CONFIG_QE) += qe_io.o
Heiko Schocher5990b052020-02-03 10:23:53 +010034endif
Masahiro Yamada06c14112013-10-17 17:35:04 +090035obj-$(CONFIG_FSL_SERDES) += serdes.o
Mario Sixa06e6652019-01-21 09:18:04 +010036ifndef CONFIG_ARCH_MPC8308
Masahiro Yamada06c14112013-10-17 17:35:04 +090037obj-$(CONFIG_PCI) += pci.o
Mario Sixa06e6652019-01-21 09:18:04 +010038endif
Masahiro Yamada06c14112013-10-17 17:35:04 +090039obj-$(CONFIG_PCIE) += pcie.o
40obj-$(CONFIG_OF_LIBFDT) += fdt.o
Anton Vorontsova796cdf2008-03-24 17:40:27 +030041
York Sun1df99082013-12-03 13:16:59 -080042ifndef CONFIG_SYS_FSL_DDRC_GEN2
Masahiro Yamada06c14112013-10-17 17:35:04 +090043obj-y += spd_sdram.o
York Sund29d17d2011-08-26 11:32:44 -070044endif
York Sun5614e712013-09-30 09:22:09 -070045obj-$(CONFIG_SYS_FSL_DDR2) += law.o
York Sund29d17d2011-08-26 11:32:44 -070046
Scott Wood06f60ae2012-12-06 13:33:17 +000047endif # not minimal