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 17ifdef CONFIG_SPL_DECOMP_HEADER 18obj-y += spl_decomp.o 19else 20obj-$(CONFIG_SPL_FRAMEWORK) += spl.o 21endif 22endif 23endif 24 25ifdef CONFIG_SPL_BUILD 26obj-$(CONFIG_$(SPL_TPL_)BOOTROM_SUPPORT) += spl_bootrom.o 27ifdef CONFIG_SPL_KERNEL_BOOT_PREBUILT 28ifdef CONFIG_ARM64 29obj-$(CONFIG_$(SPL_TPL_)LOAD_FIT) += spl_fit_tb_arm64.o 30else 31obj-$(CONFIG_$(SPL_TPL_)LOAD_FIT) += spl_fit_tb_arm32.o 32endif 33else 34obj-$(CONFIG_$(SPL_TPL_)LOAD_FIT) += spl_fit.o 35endif 36obj-$(CONFIG_$(SPL_TPL_)NOR_SUPPORT) += spl_nor.o 37obj-$(CONFIG_$(SPL_TPL_)XIP_SUPPORT) += spl_xip.o 38obj-$(CONFIG_$(SPL_TPL_)YMODEM_SUPPORT) += spl_ymodem.o 39ifndef CONFIG_SPL_UBI 40obj-$(CONFIG_$(SPL_TPL_)NAND_SUPPORT) += spl_nand.o 41obj-$(CONFIG_$(SPL_TPL_)ONENAND_SUPPORT) += spl_onenand.o 42endif 43obj-$(CONFIG_$(SPL_TPL_)UBI) += spl_ubi.o 44obj-$(CONFIG_$(SPL_TPL_)NET_SUPPORT) += spl_net.o 45obj-$(CONFIG_$(SPL_TPL_)MMC_SUPPORT) += spl_mmc.o 46obj-$(CONFIG_$(SPL_TPL_)MTD_SUPPORT) += spl_mtd_blk.o 47obj-$(CONFIG_$(SPL_TPL_)RKNAND_SUPPORT) += spl_rknand.o 48obj-$(CONFIG_$(SPL_TPL_)ATF) += spl_atf.o 49obj-$(CONFIG_$(SPL_TPL_)OPTEE) += spl_optee.o 50obj-$(CONFIG_$(SPL_TPL_)LOAD_RKFW) += spl_rkfw.o 51obj-$(CONFIG_$(SPL_TPL_)AB) += spl_ab.o 52obj-$(CONFIG_$(SPL_TPL_)USB_SUPPORT) += spl_usb.o 53obj-$(CONFIG_$(SPL_TPL_)FAT_SUPPORT) += spl_fat.o 54obj-$(CONFIG_$(SPL_TPL_)EXT_SUPPORT) += spl_ext.o 55obj-$(CONFIG_$(SPL_TPL_)SATA_SUPPORT) += spl_sata.o 56obj-$(CONFIG_$(SPL_TPL_)DFU) += spl_dfu.o 57obj-$(CONFIG_$(SPL_TPL_)SPI_LOAD) += spl_spi.o 58obj-$(CONFIG_$(SPL_TPL_)RAM_SUPPORT) += spl_ram.o 59obj-$(CONFIG_$(SPL_TPL_)USB_SDP_SUPPORT) += spl_sdp.o 60obj-$(CONFIG_$(SPL_TPL_)BOOT_IMAGE) += spl_boot_image.o 61endif 62