blob: 5ce6f4ae480c9882f5d4e1c274831ad08105efd9 [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
4# Texas Instruments Incorporated - http://www.ti.com/
5# Aneesh V <aneesh@ti.com>
Tom Rini28591df2012-08-13 12:03:19 -07006# Based on common/Makefile.
7#
8
Tom Rini28591df2012-08-13 12:03:19 -07009ifdef CONFIG_SPL_BUILD
Masahiro Yamada55c745d2013-10-17 17:34:59 +090010obj-$(CONFIG_SPL_FRAMEWORK) += spl.o
Philipp Tomsichae7dcd82017-07-04 11:16:47 +020011obj-$(CONFIG_$(SPL_TPL_)BOOTROM_SUPPORT) += spl_bootrom.o
12obj-$(CONFIG_$(SPL_TPL_)LOAD_FIT) += spl_fit.o
Philipp Tomsiche062f912017-08-17 10:06:59 +020013obj-$(CONFIG_$(SPL_TPL_)NOR_SUPPORT) += spl_nor.o
14obj-$(CONFIG_$(SPL_TPL_)XIP_SUPPORT) += spl_xip.o
15obj-$(CONFIG_$(SPL_TPL_)YMODEM_SUPPORT) += spl_ymodem.o
Ladislav Michl2a8ea482016-07-12 20:28:13 +020016ifndef CONFIG_SPL_UBI
Philipp Tomsichae7dcd82017-07-04 11:16:47 +020017obj-$(CONFIG_$(SPL_TPL_)NAND_SUPPORT) += spl_nand.o
18obj-$(CONFIG_$(SPL_TPL_)ONENAND_SUPPORT) += spl_onenand.o
Ladislav Michl2a8ea482016-07-12 20:28:13 +020019endif
Philipp Tomsichae7dcd82017-07-04 11:16:47 +020020obj-$(CONFIG_$(SPL_TPL_)UBI) += spl_ubi.o
21obj-$(CONFIG_$(SPL_TPL_)NET_SUPPORT) += spl_net.o
22obj-$(CONFIG_$(SPL_TPL_)MMC_SUPPORT) += spl_mmc.o
Philipp Tomsichf6618812017-09-13 21:29:36 +020023obj-$(CONFIG_$(SPL_TPL_)ATF) += spl_atf.o
Kever Yanga28d42c2018-08-23 17:17:59 +080024obj-$(CONFIG_$(SPL_TPL_)OPTEE) += spl_optee.o
Lukas Auer515b9342019-08-21 21:14:44 +020025obj-$(CONFIG_$(SPL_TPL_)OPENSBI) += spl_opensbi.o
Abel Vesa5ea11ba52019-02-01 16:40:07 +000026obj-$(CONFIG_$(SPL_TPL_)USB_STORAGE) += spl_usb.o
Tien Fong Chee6fd0a712019-01-23 14:20:03 +080027obj-$(CONFIG_$(SPL_TPL_)FS_FAT) += spl_fat.o
Tien Fong Chee6091dd12019-01-23 14:20:05 +080028obj-$(CONFIG_$(SPL_TPL_)FS_EXT4) += spl_ext.o
Philipp Tomsichae7dcd82017-07-04 11:16:47 +020029obj-$(CONFIG_$(SPL_TPL_)SATA_SUPPORT) += spl_sata.o
Andrew F. Davis6d932e62019-01-17 13:43:02 -060030obj-$(CONFIG_$(SPL_TPL_)DFU) += spl_dfu.o
Philipp Tomsichae7dcd82017-07-04 11:16:47 +020031obj-$(CONFIG_$(SPL_TPL_)SPI_LOAD) += spl_spi.o
32obj-$(CONFIG_$(SPL_TPL_)RAM_SUPPORT) += spl_ram.o
Stefan Agnerd0d9d212017-08-16 11:00:54 -070033obj-$(CONFIG_$(SPL_TPL_)USB_SDP_SUPPORT) += spl_sdp.o
Tom Rini28591df2012-08-13 12:03:19 -070034endif