xref: /rk3399_rockchip-uboot/common/spl/Makefile (revision 331c2375688d79920fb06b8f0c4c52a7df56fb29)
1#
2# (C) Copyright 2012
3# Texas Instruments Incorporated - http://www.ti.com/
4# Aneesh V <aneesh@ti.com>
5#
6# SPDX-License-Identifier:	GPL-2.0+
7#
8# Based on common/Makefile.
9#
10
11ifeq ($(CONFIG_TPL_BUILD), y)
12ifndef CONFIG_TPL_TINY_FRAMEWORK
13obj-$(CONFIG_SPL_FRAMEWORK) += spl.o
14endif
15else
16ifdef CONFIG_SPL_BUILD
17obj-$(CONFIG_SPL_FRAMEWORK) += spl.o
18endif
19endif
20
21ifdef CONFIG_SPL_BUILD
22obj-$(CONFIG_$(SPL_TPL_)BOOTROM_SUPPORT) += spl_bootrom.o
23obj-$(CONFIG_$(SPL_TPL_)LOAD_FIT) += spl_fit.o
24obj-$(CONFIG_$(SPL_TPL_)NOR_SUPPORT) += spl_nor.o
25obj-$(CONFIG_$(SPL_TPL_)XIP_SUPPORT) += spl_xip.o
26obj-$(CONFIG_$(SPL_TPL_)YMODEM_SUPPORT) += spl_ymodem.o
27ifndef CONFIG_SPL_UBI
28obj-$(CONFIG_$(SPL_TPL_)NAND_SUPPORT) += spl_nand.o
29obj-$(CONFIG_$(SPL_TPL_)ONENAND_SUPPORT) += spl_onenand.o
30endif
31obj-$(CONFIG_$(SPL_TPL_)UBI) += spl_ubi.o
32obj-$(CONFIG_$(SPL_TPL_)NET_SUPPORT) += spl_net.o
33obj-$(CONFIG_$(SPL_TPL_)MMC_SUPPORT) += spl_mmc.o
34obj-$(CONFIG_$(SPL_TPL_)ATF) += spl_atf.o
35obj-$(CONFIG_$(SPL_TPL_)OPTEE) += spl_optee.o
36obj-$(CONFIG_$(SPL_TPL_)LOAD_RKFW) += spl_rkfw.o
37obj-$(CONFIG_$(SPL_TPL_)USB_SUPPORT) += spl_usb.o
38obj-$(CONFIG_$(SPL_TPL_)FAT_SUPPORT) += spl_fat.o
39obj-$(CONFIG_$(SPL_TPL_)EXT_SUPPORT) += spl_ext.o
40obj-$(CONFIG_$(SPL_TPL_)SATA_SUPPORT) += spl_sata.o
41obj-$(CONFIG_$(SPL_TPL_)DFU_SUPPORT) += spl_dfu.o
42obj-$(CONFIG_$(SPL_TPL_)SPI_LOAD) += spl_spi.o
43obj-$(CONFIG_$(SPL_TPL_)RAM_SUPPORT) += spl_ram.o
44obj-$(CONFIG_$(SPL_TPL_)USB_SDP_SUPPORT) += spl_sdp.o
45endif
46