blob: ab9470820d521ee854b28dc06fe30c59da1fb96e [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#
15# For booting spl from all other media
16# use u-boot-spl_HS_ISSW
17#
18# Refer to README.ti-secure for more info
19#
20ALL-y += u-boot-spl_HS_ISSW
21ALL-$(CONFIG_SPL_SPI_SUPPORT) += u-boot-spl_HS_SPI_X-LOADER
22else
Masahiro Yamadaac5e0912014-02-24 11:12:15 +090023ALL-y += MLO
24ALL-$(CONFIG_SPL_SPI_SUPPORT) += MLO.byteswap
Daniel Allrede8a9b672016-05-19 19:10:46 -050025endif
Chandan Nath77a73fe2012-01-09 20:38:59 +000026else
Daniel Allrede8a9b672016-05-19 19:10:46 -050027ifeq ($(CONFIG_TI_SECURE_DEVICE),y)
28ALL-$(CONFIG_QSPI_BOOT) += u-boot_HS_XIP_X-LOADER
Madan Srinivas0b6dd122016-06-27 09:19:23 -050029ALL-y += u-boot_HS.img
Daniel Allrede8a9b672016-05-19 19:10:46 -050030endif
Masahiro Yamada59f15f22014-02-04 17:24:24 +090031ALL-y += u-boot.img
Chandan Nath77a73fe2012-01-09 20:38:59 +000032endif