Nishanth Menon | cb66cbe | 2015-08-17 19:54:49 +0530 | [diff] [blame] | 1 | # Copyright 2015 Texas Instruments Incorporated, <www.ti.com> |
| 2 | # |
| 3 | # Lokesh Vutla <lokeshvutla@ti.com> |
| 4 | # |
| 5 | # SPDX-License-Identifier: GPL-2.0+ |
| 6 | # |
| 7 | |
Madan Srinivas | 9283c4a | 2017-04-07 10:00:06 -0500 | [diff] [blame] | 8 | include $(srctree)/arch/arm/mach-omap2/config_secure.mk |
| 9 | |
Lokesh Vutla | 4a4c9f5 | 2015-08-17 19:54:51 +0530 | [diff] [blame] | 10 | ifndef CONFIG_SPL_BUILD |
Madan Srinivas | 9283c4a | 2017-04-07 10:00:06 -0500 | [diff] [blame] | 11 | ifeq ($(CONFIG_TI_SECURE_DEVICE),y) |
Simon Glass | c46090d | 2020-07-19 13:56:01 -0600 | [diff] [blame] | 12 | INPUTS-y += u-boot_HS_MLO |
Madan Srinivas | 9283c4a | 2017-04-07 10:00:06 -0500 | [diff] [blame] | 13 | else |
Simon Glass | c46090d | 2020-07-19 13:56:01 -0600 | [diff] [blame] | 14 | INPUTS-y += MLO |
Lokesh Vutla | 4a4c9f5 | 2015-08-17 19:54:51 +0530 | [diff] [blame] | 15 | endif |
Madan Srinivas | 9283c4a | 2017-04-07 10:00:06 -0500 | [diff] [blame] | 16 | endif |
Lokesh Vutla | 4a4c9f5 | 2015-08-17 19:54:51 +0530 | [diff] [blame] | 17 | |
Nishanth Menon | cb66cbe | 2015-08-17 19:54:49 +0530 | [diff] [blame] | 18 | MKIMAGEFLAGS_u-boot-spl.gph = -A $(ARCH) -T gpimage -C none \ |
| 19 | -a $(CONFIG_SPL_TEXT_BASE) -e $(CONFIG_SPL_TEXT_BASE) -n SPL |
| 20 | spl/u-boot-spl.gph: spl/u-boot-spl.bin FORCE |
| 21 | $(call if_changed,mkimage) |
| 22 | |
| 23 | OBJCOPYFLAGS_u-boot-spi.gph = -I binary -O binary --pad-to=$(CONFIG_SPL_PAD_TO) \ |
| 24 | --gap-fill=0 |
Cooper Jr., Franklin | 3ea52bf | 2017-06-16 17:25:14 -0500 | [diff] [blame] | 25 | u-boot-spi.gph: spl/u-boot-spl.gph u-boot.img FORCE |
Nishanth Menon | cb66cbe | 2015-08-17 19:54:49 +0530 | [diff] [blame] | 26 | $(call if_changed,pad_cat) |
| 27 | |
Lokesh Vutla | 0afbe87 | 2015-08-17 19:54:50 +0530 | [diff] [blame] | 28 | ifndef CONFIG_SPL_BUILD |
| 29 | MKIMAGEFLAGS_MLO = -A $(ARCH) -T gpimage -C none \ |
Nishanth Menon | cb66cbe | 2015-08-17 19:54:49 +0530 | [diff] [blame] | 30 | -a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_TEXT_BASE) -n U-Boot |
Cooper Jr., Franklin | 3ea52bf | 2017-06-16 17:25:14 -0500 | [diff] [blame] | 31 | MLO: u-boot.bin FORCE |
Nishanth Menon | cb66cbe | 2015-08-17 19:54:49 +0530 | [diff] [blame] | 32 | $(call if_changed,mkimage) |
| 33 | @dd if=/dev/zero bs=8 count=1 2>/dev/null >> $@ |
Lokesh Vutla | 0afbe87 | 2015-08-17 19:54:50 +0530 | [diff] [blame] | 34 | endif |