blob: 87b76d96a83937030455a9062b88d29429051fea [file] [log] [blame]
Chandan Nath77a73fe2012-01-09 20:38:59 +00001#
2# Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/
3#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02004# SPDX-License-Identifier: GPL-2.0+
Chandan Nath77a73fe2012-01-09 20:38:59 +00005#
Daniel Allrede8a9b672016-05-19 19:10:46 -05006
7include $(srctree)/$(CPUDIR)/omap-common/config_secure.mk
8
Chandan Nath77a73fe2012-01-09 20:38:59 +00009ifdef CONFIG_SPL_BUILD
Daniel Allrede8a9b672016-05-19 19:10:46 -050010ifeq ($(CONFIG_TI_SECURE_DEVICE),y)
11#
12# For booting from SPI use
13# u-boot-spl_HS_SPI_X-LOADER to program flash
14#
Andrew F. Davisa86d6ad2016-08-30 14:06:21 -050015# On AM43XX:
16#
17# For booting spl from all other media use
18# u-boot-spl_HS_ISSW
19#
20# On AM33XX:
21#
22# For booting spl from NAND flash use
23# u-boot-spl_HS_X-LOADER
24#
25# For booting spl from SD/MMC/eMMC media use
26# u-boot-spl_HS_MLO
27#
28# For booting spl over UART, USB, or Ethernet use
29# u-boot-spl_HS_2ND
Daniel Allrede8a9b672016-05-19 19:10:46 -050030#
31# Refer to README.ti-secure for more info
32#
33ALL-y += u-boot-spl_HS_ISSW
Andrew F. Davis8a739ae2016-08-30 14:06:23 -050034ALL-y += u-boot-spl_HS_SPI_X-LOADER
Andrew F. Davisa86d6ad2016-08-30 14:06:21 -050035ALL-y += u-boot-spl_HS_X-LOADER
36ALL-y += u-boot-spl_HS_MLO
37ALL-y += u-boot-spl_HS_2ND
Daniel Allrede8a9b672016-05-19 19:10:46 -050038else
Masahiro Yamadaac5e0912014-02-24 11:12:15 +090039ALL-y += MLO
Andrew F. Davis8a739ae2016-08-30 14:06:23 -050040ALL-y += MLO.byteswap
Daniel Allrede8a9b672016-05-19 19:10:46 -050041endif
Chandan Nath77a73fe2012-01-09 20:38:59 +000042else
Daniel Allrede8a9b672016-05-19 19:10:46 -050043ifeq ($(CONFIG_TI_SECURE_DEVICE),y)
44ALL-$(CONFIG_QSPI_BOOT) += u-boot_HS_XIP_X-LOADER
Andreas Dannenberg28c6b022016-07-20 13:55:58 -050045ALL-$(CONFIG_SPL_LOAD_FIT) += u-boot_HS.img
Daniel Allrede8a9b672016-05-19 19:10:46 -050046endif
Masahiro Yamada59f15f22014-02-04 17:24:24 +090047ALL-y += u-boot.img
Chandan Nath77a73fe2012-01-09 20:38:59 +000048endif