Chandan Nath | 8a8f084 | 2012-01-09 20:38:59 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/ |
| 3 | # |
Tom Rini | 983e370 | 2016-11-07 21:34:54 -0500 | [diff] [blame] | 4 | # SPDX-License-Identifier: GPL-2.0+ |
Daniel Allred | 883dfd1 | 2016-05-19 19:10:46 -0500 | [diff] [blame] | 5 | |
Tom Rini | 983e370 | 2016-11-07 21:34:54 -0500 | [diff] [blame] | 6 | include $(srctree)/arch/arm/mach-omap2/config_secure.mk |
Daniel Allred | 883dfd1 | 2016-05-19 19:10:46 -0500 | [diff] [blame] | 7 | |
Chandan Nath | 8a8f084 | 2012-01-09 20:38:59 +0000 | [diff] [blame] | 8 | ifdef CONFIG_SPL_BUILD |
Andrew F. Davis | c8a25ac | 2017-01-23 11:34:37 -0600 | [diff] [blame] | 9 | ifeq ($(CONFIG_TI_SECURE_DEVICE),y) # Refer to README.ti-secure for more info |
| 10 | # On DRA7xx/AM57xx: |
Daniel Allred | 883dfd1 | 2016-05-19 19:10:46 -0500 | [diff] [blame] | 11 | # |
Andrew F. Davis | c8a25ac | 2017-01-23 11:34:37 -0600 | [diff] [blame] | 12 | # For booting spl from SD/MMC/eMMC use |
| 13 | # u-boot-spl_HS_MLO |
Daniel Allred | 883dfd1 | 2016-05-19 19:10:46 -0500 | [diff] [blame] | 14 | # |
Andrew F. Davis | c8a25ac | 2017-01-23 11:34:37 -0600 | [diff] [blame] | 15 | # For booting spl over UART or USB use |
| 16 | # u-boot-spl_HS_ULO |
| 17 | # |
| 18 | # For booting spl from QSPI or NOR use |
| 19 | # u-boot-spl_HS_X-LOADER |
| 20 | ifeq ($(CONFIG_OMAP54XX),y) |
| 21 | ALL-y += u-boot-spl_HS_MLO |
| 22 | ALL-y += u-boot-spl_HS_ULO |
| 23 | ALL-y += u-boot-spl_HS_X-LOADER |
| 24 | endif |
Andrew F. Davis | 9eda251 | 2016-08-30 14:06:21 -0500 | [diff] [blame] | 25 | # On AM43XX: |
| 26 | # |
Andrew F. Davis | c8a25ac | 2017-01-23 11:34:37 -0600 | [diff] [blame] | 27 | # For booting spl from SPI flash use |
| 28 | # u-boot-spl_HS_SPI_X-LOADER |
| 29 | # |
Andrew F. Davis | 9eda251 | 2016-08-30 14:06:21 -0500 | [diff] [blame] | 30 | # For booting spl from all other media use |
| 31 | # u-boot-spl_HS_ISSW |
Andrew F. Davis | c8a25ac | 2017-01-23 11:34:37 -0600 | [diff] [blame] | 32 | ifeq ($(CONFIG_AM43XX),y) |
| 33 | ALL-y += u-boot-spl_HS_SPI_X-LOADER |
| 34 | ALL-y += u-boot-spl_HS_ISSW |
| 35 | endif |
Andrew F. Davis | 9eda251 | 2016-08-30 14:06:21 -0500 | [diff] [blame] | 36 | # On AM33XX: |
| 37 | # |
Andrew F. Davis | c8a25ac | 2017-01-23 11:34:37 -0600 | [diff] [blame] | 38 | # For booting spl from SPI flash use |
| 39 | # u-boot-spl_HS_SPI_X-LOADER |
| 40 | # |
| 41 | # For booting spl from NAND flash or raw SD/MMC/eMMC use |
Andrew F. Davis | 9eda251 | 2016-08-30 14:06:21 -0500 | [diff] [blame] | 42 | # u-boot-spl_HS_X-LOADER |
| 43 | # |
Andrew F. Davis | c8a25ac | 2017-01-23 11:34:37 -0600 | [diff] [blame] | 44 | # For booting spl from a filesystem on SD/MMC/eMMC use |
Andrew F. Davis | 9eda251 | 2016-08-30 14:06:21 -0500 | [diff] [blame] | 45 | # u-boot-spl_HS_MLO |
| 46 | # |
| 47 | # For booting spl over UART, USB, or Ethernet use |
| 48 | # u-boot-spl_HS_2ND |
Andrew F. Davis | c8a25ac | 2017-01-23 11:34:37 -0600 | [diff] [blame] | 49 | ifeq ($(CONFIG_AM33XX),y) |
Andrew F. Davis | 7e5a0bf | 2016-08-30 14:06:23 -0500 | [diff] [blame] | 50 | ALL-y += u-boot-spl_HS_SPI_X-LOADER |
Andrew F. Davis | 9eda251 | 2016-08-30 14:06:21 -0500 | [diff] [blame] | 51 | ALL-y += u-boot-spl_HS_X-LOADER |
| 52 | ALL-y += u-boot-spl_HS_MLO |
| 53 | ALL-y += u-boot-spl_HS_2ND |
Andrew F. Davis | c8a25ac | 2017-01-23 11:34:37 -0600 | [diff] [blame] | 54 | endif |
Daniel Allred | 883dfd1 | 2016-05-19 19:10:46 -0500 | [diff] [blame] | 55 | else |
Tom Rini | 983e370 | 2016-11-07 21:34:54 -0500 | [diff] [blame] | 56 | ALL-y += MLO |
| 57 | ifeq ($(CONFIG_AM33XX),y) |
Andrew F. Davis | 7e5a0bf | 2016-08-30 14:06:23 -0500 | [diff] [blame] | 58 | ALL-y += MLO.byteswap |
Daniel Allred | 883dfd1 | 2016-05-19 19:10:46 -0500 | [diff] [blame] | 59 | endif |
Tom Rini | 983e370 | 2016-11-07 21:34:54 -0500 | [diff] [blame] | 60 | endif |
Chandan Nath | 8a8f084 | 2012-01-09 20:38:59 +0000 | [diff] [blame] | 61 | else |
Daniel Allred | 883dfd1 | 2016-05-19 19:10:46 -0500 | [diff] [blame] | 62 | ifeq ($(CONFIG_TI_SECURE_DEVICE),y) |
| 63 | ALL-$(CONFIG_QSPI_BOOT) += u-boot_HS_XIP_X-LOADER |
Andreas Dannenberg | 8b76d23e | 2016-07-20 13:55:58 -0500 | [diff] [blame] | 64 | ALL-$(CONFIG_SPL_LOAD_FIT) += u-boot_HS.img |
Daniel Allred | 883dfd1 | 2016-05-19 19:10:46 -0500 | [diff] [blame] | 65 | endif |
Tom Rini | 983e370 | 2016-11-07 21:34:54 -0500 | [diff] [blame] | 66 | ALL-y += u-boot.img |
Chandan Nath | 8a8f084 | 2012-01-09 20:38:59 +0000 | [diff] [blame] | 67 | endif |