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 |
Tom Rini | 28eec37 | 2016-11-07 21:34:54 -0500 | [diff] [blame] | 9 | ifeq ($(CONFIG_AM33XX)$(CONFIG_TI_SECURE_DEVICE),yy) |
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 | ifeq ($(CONFIG_OMAP54XX)$(CONFIG_TI_SECURE_DEVICE),yy) |
| 39 | ALL-y += u-boot-spl_HS_MLO u-boot-spl_HS_X-LOADER |
| 40 | else |
| 41 | ALL-y += MLO |
| 42 | ifeq ($(CONFIG_AM33XX),y) |
Andrew F. Davis | 8a739ae | 2016-08-30 14:06:23 -0500 | [diff] [blame] | 43 | ALL-y += MLO.byteswap |
Daniel Allred | e8a9b67 | 2016-05-19 19:10:46 -0500 | [diff] [blame] | 44 | endif |
Tom Rini | 28eec37 | 2016-11-07 21:34:54 -0500 | [diff] [blame] | 45 | endif |
| 46 | endif |
Chandan Nath | 77a73fe | 2012-01-09 20:38:59 +0000 | [diff] [blame] | 47 | else |
Daniel Allred | e8a9b67 | 2016-05-19 19:10:46 -0500 | [diff] [blame] | 48 | ifeq ($(CONFIG_TI_SECURE_DEVICE),y) |
| 49 | ALL-$(CONFIG_QSPI_BOOT) += u-boot_HS_XIP_X-LOADER |
Andreas Dannenberg | 28c6b02 | 2016-07-20 13:55:58 -0500 | [diff] [blame] | 50 | ALL-$(CONFIG_SPL_LOAD_FIT) += u-boot_HS.img |
Daniel Allred | e8a9b67 | 2016-05-19 19:10:46 -0500 | [diff] [blame] | 51 | endif |
Tom Rini | 28eec37 | 2016-11-07 21:34:54 -0500 | [diff] [blame] | 52 | ALL-y += u-boot.img |
Chandan Nath | 77a73fe | 2012-01-09 20:38:59 +0000 | [diff] [blame] | 53 | endif |