blob: 75123eb666b2061929d30e7cb2c5cb7149a12508 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Tom Rini28591df2012-08-13 12:03:19 -07002#
3# (C) Copyright 2012
Nishanth Menoneaa39c62023-11-01 15:56:03 -05004# Texas Instruments Incorporated - https://www.ti.com/
Tom Rini28591df2012-08-13 12:03:19 -07005# Aneesh V <aneesh@ti.com>
Tom Rini28591df2012-08-13 12:03:19 -07006# Based on common/Makefile.
7#
8
Simon Glass0e84d962024-09-29 19:49:50 -06009ifdef CONFIG_XPL_BUILD
Simon Glass4cafa212024-09-29 19:49:54 -060010obj-$(CONFIG_$(PHASE_)FRAMEWORK) += spl.o
11obj-$(CONFIG_$(PHASE_)BOOTROM_SUPPORT) += spl_bootrom.o
12obj-$(CONFIG_$(PHASE_)LOAD_FIT) += spl_fit.o
13obj-$(CONFIG_$(PHASE_)BLK_FS) += spl_blk_fs.o
14obj-$(CONFIG_$(PHASE_)LEGACY_IMAGE_FORMAT) += spl_legacy.o
15obj-$(CONFIG_$(PHASE_)NOR_SUPPORT) += spl_nor.o
16obj-$(CONFIG_$(PHASE_)XIP_SUPPORT) += spl_xip.o
17obj-$(CONFIG_$(PHASE_)YMODEM_SUPPORT) += spl_ymodem.o
Ladislav Michl2a8ea482016-07-12 20:28:13 +020018ifndef CONFIG_SPL_UBI
Simon Glass4cafa212024-09-29 19:49:54 -060019obj-$(CONFIG_$(PHASE_)NAND_SUPPORT) += spl_nand.o
20obj-$(CONFIG_$(PHASE_)ONENAND_SUPPORT) += spl_onenand.o
Ladislav Michl2a8ea482016-07-12 20:28:13 +020021endif
Simon Glass4cafa212024-09-29 19:49:54 -060022obj-$(CONFIG_$(PHASE_)UBI) += spl_ubi.o
23obj-$(CONFIG_$(PHASE_)NET) += spl_net.o
24obj-$(CONFIG_$(PHASE_)MMC) += spl_mmc.o
25obj-$(CONFIG_$(PHASE_)ATF) += spl_atf.o
26obj-$(CONFIG_$(PHASE_)OPTEE_IMAGE) += spl_optee.o
27obj-$(CONFIG_$(PHASE_)OPENSBI) += spl_opensbi.o
28obj-$(CONFIG_$(PHASE_)USB_STORAGE) += spl_usb.o
29obj-$(CONFIG_$(PHASE_)FS_FAT) += spl_fat.o
30obj-$(CONFIG_$(PHASE_)FS_EXT4) += spl_ext.o
31obj-$(CONFIG_$(PHASE_)LOAD_IMX_CONTAINER) += spl_imx_container.o
32obj-$(CONFIG_$(PHASE_)SATA) += spl_sata.o
33obj-$(CONFIG_$(PHASE_)NVME) += spl_nvme.o
34obj-$(CONFIG_$(PHASE_)SEMIHOSTING) += spl_semihosting.o
35obj-$(CONFIG_$(PHASE_)DFU) += spl_dfu.o
36obj-$(CONFIG_$(PHASE_)SPI_LOAD) += spl_spi.o
37obj-$(CONFIG_$(PHASE_)RAM_SUPPORT) += spl_ram.o
38obj-$(CONFIG_$(PHASE_)USB_SDP_SUPPORT) += spl_sdp.o
Tom Rini28591df2012-08-13 12:03:19 -070039endif
Simon Glassbc3ec002024-08-07 16:47:31 -060040
Simon Glass4cafa212024-09-29 19:49:54 -060041obj-$(CONFIG_$(PHASE_)UPL) += spl_upl.o