Nishanth Menon | cd43ddc | 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 | 2ff5183 | 2017-04-07 10:00:06 -0500 | [diff] [blame] | 8 | include $(srctree)/arch/arm/mach-omap2/config_secure.mk |
| 9 | |
Lokesh Vutla | 45fe4b4 | 2015-08-17 19:54:51 +0530 | [diff] [blame] | 10 | ifndef CONFIG_SPL_BUILD |
Madan Srinivas | 2ff5183 | 2017-04-07 10:00:06 -0500 | [diff] [blame] | 11 | ifeq ($(CONFIG_TI_SECURE_DEVICE),y) |
Simon Glass | e6385c7 | 2020-07-19 13:56:01 -0600 | [diff] [blame] | 12 | INPUTS-y += u-boot_HS_MLO |
Madan Srinivas | 2ff5183 | 2017-04-07 10:00:06 -0500 | [diff] [blame] | 13 | else |
Simon Glass | e6385c7 | 2020-07-19 13:56:01 -0600 | [diff] [blame] | 14 | INPUTS-y += MLO |
Lokesh Vutla | 45fe4b4 | 2015-08-17 19:54:51 +0530 | [diff] [blame] | 15 | endif |
Madan Srinivas | 2ff5183 | 2017-04-07 10:00:06 -0500 | [diff] [blame] | 16 | endif |
Lokesh Vutla | 45fe4b4 | 2015-08-17 19:54:51 +0530 | [diff] [blame] | 17 | |
Nishanth Menon | cd43ddc | 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 | 85bfe48 | 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 | cd43ddc | 2015-08-17 19:54:49 +0530 | [diff] [blame] | 26 | $(call if_changed,pad_cat) |
| 27 | |
Lokesh Vutla | 5f586e9 | 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 | cd43ddc | 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 | 85bfe48 | 2017-06-16 17:25:14 -0500 | [diff] [blame] | 31 | MLO: u-boot.bin FORCE |
Nishanth Menon | cd43ddc | 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 | 5f586e9 | 2015-08-17 19:54:50 +0530 | [diff] [blame] | 34 | endif |