Chandan Nath | 77a73fe | 2012-01-09 20:38:59 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/ |
| 3 | # |
Tom Rini | 28eec37 | 2016-11-07 21:34:54 -0500 | [diff] [blame] | 4 | # SPDX-License-Identifier: GPL-2.0+ |
Daniel Allred | e8a9b67 | 2016-05-19 19:10:46 -0500 | [diff] [blame] | 5 | |
Tom Rini | 28eec37 | 2016-11-07 21:34:54 -0500 | [diff] [blame] | 6 | include $(srctree)/arch/arm/mach-omap2/config_secure.mk |
Daniel Allred | e8a9b67 | 2016-05-19 19:10:46 -0500 | [diff] [blame] | 7 | |
Chandan Nath | 77a73fe | 2012-01-09 20:38:59 +0000 | [diff] [blame] | 8 | ifdef CONFIG_SPL_BUILD |
Andrew F. Davis | 4572703 | 2017-01-12 10:21:58 -0600 | [diff] [blame] | 9 | ifeq ($(CONFIG_TI_SECURE_DEVICE),y) |
Daniel Allred | e8a9b67 | 2016-05-19 19:10:46 -0500 | [diff] [blame] | 10 | # |
| 11 | # For booting from SPI use |
| 12 | # u-boot-spl_HS_SPI_X-LOADER to program flash |
| 13 | # |
Andrew F. Davis | a86d6ad | 2016-08-30 14:06:21 -0500 | [diff] [blame] | 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 |
Daniel Allred | e8a9b67 | 2016-05-19 19:10:46 -0500 | [diff] [blame] | 29 | # |
| 30 | # Refer to README.ti-secure for more info |
| 31 | # |
Tom Rini | 28eec37 | 2016-11-07 21:34:54 -0500 | [diff] [blame] | 32 | ALL-y += u-boot-spl_HS_ISSW |
Andrew F. Davis | 8a739ae | 2016-08-30 14:06:23 -0500 | [diff] [blame] | 33 | ALL-y += u-boot-spl_HS_SPI_X-LOADER |
Andrew F. Davis | a86d6ad | 2016-08-30 14:06:21 -0500 | [diff] [blame] | 34 | ALL-y += u-boot-spl_HS_X-LOADER |
| 35 | ALL-y += u-boot-spl_HS_MLO |
| 36 | ALL-y += u-boot-spl_HS_2ND |
Daniel Allred | e8a9b67 | 2016-05-19 19:10:46 -0500 | [diff] [blame] | 37 | else |
Tom Rini | 28eec37 | 2016-11-07 21:34:54 -0500 | [diff] [blame] | 38 | ALL-y += MLO |
| 39 | ifeq ($(CONFIG_AM33XX),y) |
Andrew F. Davis | 8a739ae | 2016-08-30 14:06:23 -0500 | [diff] [blame] | 40 | ALL-y += MLO.byteswap |
Daniel Allred | e8a9b67 | 2016-05-19 19:10:46 -0500 | [diff] [blame] | 41 | endif |
Tom Rini | 28eec37 | 2016-11-07 21:34:54 -0500 | [diff] [blame] | 42 | endif |
Chandan Nath | 77a73fe | 2012-01-09 20:38:59 +0000 | [diff] [blame] | 43 | else |
Daniel Allred | e8a9b67 | 2016-05-19 19:10:46 -0500 | [diff] [blame] | 44 | ifeq ($(CONFIG_TI_SECURE_DEVICE),y) |
| 45 | ALL-$(CONFIG_QSPI_BOOT) += u-boot_HS_XIP_X-LOADER |
Andreas Dannenberg | 28c6b02 | 2016-07-20 13:55:58 -0500 | [diff] [blame] | 46 | ALL-$(CONFIG_SPL_LOAD_FIT) += u-boot_HS.img |
Daniel Allred | e8a9b67 | 2016-05-19 19:10:46 -0500 | [diff] [blame] | 47 | endif |
Tom Rini | 28eec37 | 2016-11-07 21:34:54 -0500 | [diff] [blame] | 48 | ALL-y += u-boot.img |
Chandan Nath | 77a73fe | 2012-01-09 20:38:59 +0000 | [diff] [blame] | 49 | endif |