1# 2# Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/ 3# 4# SPDX-License-Identifier: GPL-2.0+ 5 6include $(srctree)/arch/arm/mach-omap2/config_secure.mk 7 8ifdef CONFIG_SPL_BUILD 9ifeq ($(CONFIG_AM33XX)$(CONFIG_TI_SECURE_DEVICE),yy) 10# 11# For booting from SPI use 12# u-boot-spl_HS_SPI_X-LOADER to program flash 13# 14# On AM43XX: 15# 16# For booting spl from all other media use 17# u-boot-spl_HS_ISSW 18# 19# On AM33XX: 20# 21# For booting spl from NAND flash use 22# u-boot-spl_HS_X-LOADER 23# 24# For booting spl from SD/MMC/eMMC media use 25# u-boot-spl_HS_MLO 26# 27# For booting spl over UART, USB, or Ethernet use 28# u-boot-spl_HS_2ND 29# 30# Refer to README.ti-secure for more info 31# 32ALL-y += u-boot-spl_HS_ISSW 33ALL-y += u-boot-spl_HS_SPI_X-LOADER 34ALL-y += u-boot-spl_HS_X-LOADER 35ALL-y += u-boot-spl_HS_MLO 36ALL-y += u-boot-spl_HS_2ND 37else 38ifeq ($(CONFIG_OMAP54XX)$(CONFIG_TI_SECURE_DEVICE),yy) 39ALL-y += u-boot-spl_HS_MLO u-boot-spl_HS_X-LOADER 40else 41ALL-y += MLO 42ifeq ($(CONFIG_AM33XX),y) 43ALL-y += MLO.byteswap 44endif 45endif 46endif 47else 48ifeq ($(CONFIG_TI_SECURE_DEVICE),y) 49ALL-$(CONFIG_QSPI_BOOT) += u-boot_HS_XIP_X-LOADER 50ALL-$(CONFIG_SPL_LOAD_FIT) += u-boot_HS.img 51endif 52ALL-y += u-boot.img 53endif 54