blob: 5a16891f234ca8908400fa8a3ece8b081b8baafc [file] [log] [blame]
Nishanth Menoncb66cbe2015-08-17 19:54:49 +05301# 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 Srinivas9283c4a2017-04-07 10:00:06 -05008include $(srctree)/arch/arm/mach-omap2/config_secure.mk
9
Lokesh Vutla4a4c9f52015-08-17 19:54:51 +053010ifndef CONFIG_SPL_BUILD
Madan Srinivas9283c4a2017-04-07 10:00:06 -050011ifeq ($(CONFIG_TI_SECURE_DEVICE),y)
Simon Glassc46090d2020-07-19 13:56:01 -060012INPUTS-y += u-boot_HS_MLO
Madan Srinivas9283c4a2017-04-07 10:00:06 -050013else
Simon Glassc46090d2020-07-19 13:56:01 -060014INPUTS-y += MLO
Lokesh Vutla4a4c9f52015-08-17 19:54:51 +053015endif
Madan Srinivas9283c4a2017-04-07 10:00:06 -050016endif
Lokesh Vutla4a4c9f52015-08-17 19:54:51 +053017
Nishanth Menoncb66cbe2015-08-17 19:54:49 +053018MKIMAGEFLAGS_u-boot-spl.gph = -A $(ARCH) -T gpimage -C none \
19 -a $(CONFIG_SPL_TEXT_BASE) -e $(CONFIG_SPL_TEXT_BASE) -n SPL
20spl/u-boot-spl.gph: spl/u-boot-spl.bin FORCE
21 $(call if_changed,mkimage)
22
23OBJCOPYFLAGS_u-boot-spi.gph = -I binary -O binary --pad-to=$(CONFIG_SPL_PAD_TO) \
24 --gap-fill=0
Cooper Jr., Franklin3ea52bf2017-06-16 17:25:14 -050025u-boot-spi.gph: spl/u-boot-spl.gph u-boot.img FORCE
Nishanth Menoncb66cbe2015-08-17 19:54:49 +053026 $(call if_changed,pad_cat)
27
Lokesh Vutla0afbe872015-08-17 19:54:50 +053028ifndef CONFIG_SPL_BUILD
29MKIMAGEFLAGS_MLO = -A $(ARCH) -T gpimage -C none \
Nishanth Menoncb66cbe2015-08-17 19:54:49 +053030 -a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_TEXT_BASE) -n U-Boot
Cooper Jr., Franklin3ea52bf2017-06-16 17:25:14 -050031MLO: u-boot.bin FORCE
Nishanth Menoncb66cbe2015-08-17 19:54:49 +053032 $(call if_changed,mkimage)
33 @dd if=/dev/zero bs=8 count=1 2>/dev/null >> $@
Lokesh Vutla0afbe872015-08-17 19:54:50 +053034endif