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 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | # SPDX-License-Identifier: GPL-2.0+ |
Chandan Nath | 77a73fe | 2012-01-09 20:38:59 +0000 | [diff] [blame] | 5 | # |
Daniel Allred | e8a9b67 | 2016-05-19 19:10:46 -0500 | [diff] [blame] | 6 | |
| 7 | include $(srctree)/$(CPUDIR)/omap-common/config_secure.mk |
| 8 | |
Chandan Nath | 77a73fe | 2012-01-09 20:38:59 +0000 | [diff] [blame] | 9 | ifdef CONFIG_SPL_BUILD |
Daniel Allred | e8a9b67 | 2016-05-19 19:10:46 -0500 | [diff] [blame] | 10 | ifeq ($(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. Davis | a86d6ad | 2016-08-30 14:06:21 -0500 | [diff] [blame^] | 15 | # 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 Allred | e8a9b67 | 2016-05-19 19:10:46 -0500 | [diff] [blame] | 30 | # |
| 31 | # Refer to README.ti-secure for more info |
| 32 | # |
| 33 | ALL-y += u-boot-spl_HS_ISSW |
| 34 | ALL-$(CONFIG_SPL_SPI_SUPPORT) += u-boot-spl_HS_SPI_X-LOADER |
Andrew F. Davis | a86d6ad | 2016-08-30 14:06:21 -0500 | [diff] [blame^] | 35 | ALL-y += u-boot-spl_HS_X-LOADER |
| 36 | ALL-y += u-boot-spl_HS_MLO |
| 37 | ALL-y += u-boot-spl_HS_2ND |
Daniel Allred | e8a9b67 | 2016-05-19 19:10:46 -0500 | [diff] [blame] | 38 | else |
Masahiro Yamada | ac5e091 | 2014-02-24 11:12:15 +0900 | [diff] [blame] | 39 | ALL-y += MLO |
| 40 | ALL-$(CONFIG_SPL_SPI_SUPPORT) += MLO.byteswap |
Daniel Allred | e8a9b67 | 2016-05-19 19:10:46 -0500 | [diff] [blame] | 41 | endif |
Chandan Nath | 77a73fe | 2012-01-09 20:38:59 +0000 | [diff] [blame] | 42 | else |
Daniel Allred | e8a9b67 | 2016-05-19 19:10:46 -0500 | [diff] [blame] | 43 | ifeq ($(CONFIG_TI_SECURE_DEVICE),y) |
| 44 | ALL-$(CONFIG_QSPI_BOOT) += u-boot_HS_XIP_X-LOADER |
Andreas Dannenberg | 28c6b02 | 2016-07-20 13:55:58 -0500 | [diff] [blame] | 45 | ALL-$(CONFIG_SPL_LOAD_FIT) += u-boot_HS.img |
Daniel Allred | e8a9b67 | 2016-05-19 19:10:46 -0500 | [diff] [blame] | 46 | endif |
Masahiro Yamada | 59f15f2 | 2014-02-04 17:24:24 +0900 | [diff] [blame] | 47 | ALL-y += u-boot.img |
Chandan Nath | 77a73fe | 2012-01-09 20:38:59 +0000 | [diff] [blame] | 48 | endif |