blob: 20b555357a04f37bee6595c5239aea6d70730c90 [file] [log] [blame]
Chandan Nath77a73fe2012-01-09 20:38:59 +00001#
2# Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/
3#
Tom Rini28eec372016-11-07 21:34:54 -05004# SPDX-License-Identifier: GPL-2.0+
Daniel Allrede8a9b672016-05-19 19:10:46 -05005
Tom Rini28eec372016-11-07 21:34:54 -05006include $(srctree)/arch/arm/mach-omap2/config_secure.mk
Daniel Allrede8a9b672016-05-19 19:10:46 -05007
Chandan Nath77a73fe2012-01-09 20:38:59 +00008ifdef CONFIG_SPL_BUILD
Andrew F. Davis45727032017-01-12 10:21:58 -06009ifeq ($(CONFIG_TI_SECURE_DEVICE),y)
Daniel Allrede8a9b672016-05-19 19:10:46 -050010#
11# For booting from SPI use
12# u-boot-spl_HS_SPI_X-LOADER to program flash
13#
Andrew F. Davisa86d6ad2016-08-30 14:06:21 -050014# 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
Daniel Allrede8a9b672016-05-19 19:10:46 -050029#
30# Refer to README.ti-secure for more info
31#
Tom Rini28eec372016-11-07 21:34:54 -050032ALL-y += u-boot-spl_HS_ISSW
Andrew F. Davis8a739ae2016-08-30 14:06:23 -050033ALL-y += u-boot-spl_HS_SPI_X-LOADER
Andrew F. Davisa86d6ad2016-08-30 14:06:21 -050034ALL-y += u-boot-spl_HS_X-LOADER
35ALL-y += u-boot-spl_HS_MLO
36ALL-y += u-boot-spl_HS_2ND
Daniel Allrede8a9b672016-05-19 19:10:46 -050037else
Tom Rini28eec372016-11-07 21:34:54 -050038ALL-y += MLO
39ifeq ($(CONFIG_AM33XX),y)
Andrew F. Davis8a739ae2016-08-30 14:06:23 -050040ALL-y += MLO.byteswap
Daniel Allrede8a9b672016-05-19 19:10:46 -050041endif
Tom Rini28eec372016-11-07 21:34:54 -050042endif
Chandan Nath77a73fe2012-01-09 20:38:59 +000043else
Daniel Allrede8a9b672016-05-19 19:10:46 -050044ifeq ($(CONFIG_TI_SECURE_DEVICE),y)
45ALL-$(CONFIG_QSPI_BOOT) += u-boot_HS_XIP_X-LOADER
Andreas Dannenberg28c6b022016-07-20 13:55:58 -050046ALL-$(CONFIG_SPL_LOAD_FIT) += u-boot_HS.img
Daniel Allrede8a9b672016-05-19 19:10:46 -050047endif
Tom Rini28eec372016-11-07 21:34:54 -050048ALL-y += u-boot.img
Chandan Nath77a73fe2012-01-09 20:38:59 +000049endif