2015-08-17 14:24:49 +00:00
|
|
|
# Copyright 2015 Texas Instruments Incorporated, <www.ti.com>
|
|
|
|
#
|
|
|
|
# Lokesh Vutla <lokeshvutla@ti.com>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
|
|
|
#
|
|
|
|
|
2017-04-07 15:00:06 +00:00
|
|
|
include $(srctree)/arch/arm/mach-omap2/config_secure.mk
|
|
|
|
|
2015-08-17 14:24:51 +00:00
|
|
|
ifndef CONFIG_SPL_BUILD
|
2017-04-07 15:00:06 +00:00
|
|
|
ifeq ($(CONFIG_TI_SECURE_DEVICE),y)
|
2020-07-19 19:56:01 +00:00
|
|
|
INPUTS-y += u-boot_HS_MLO
|
2017-04-07 15:00:06 +00:00
|
|
|
else
|
2020-07-19 19:56:01 +00:00
|
|
|
INPUTS-y += MLO
|
2015-08-17 14:24:51 +00:00
|
|
|
endif
|
2017-04-07 15:00:06 +00:00
|
|
|
endif
|
2015-08-17 14:24:51 +00:00
|
|
|
|
2015-08-17 14:24:49 +00:00
|
|
|
MKIMAGEFLAGS_u-boot-spl.gph = -A $(ARCH) -T gpimage -C none \
|
|
|
|
-a $(CONFIG_SPL_TEXT_BASE) -e $(CONFIG_SPL_TEXT_BASE) -n SPL
|
|
|
|
spl/u-boot-spl.gph: spl/u-boot-spl.bin FORCE
|
|
|
|
$(call if_changed,mkimage)
|
|
|
|
|
|
|
|
OBJCOPYFLAGS_u-boot-spi.gph = -I binary -O binary --pad-to=$(CONFIG_SPL_PAD_TO) \
|
|
|
|
--gap-fill=0
|
2017-06-16 22:25:14 +00:00
|
|
|
u-boot-spi.gph: spl/u-boot-spl.gph u-boot.img FORCE
|
2015-08-17 14:24:49 +00:00
|
|
|
$(call if_changed,pad_cat)
|
|
|
|
|
2015-08-17 14:24:50 +00:00
|
|
|
ifndef CONFIG_SPL_BUILD
|
|
|
|
MKIMAGEFLAGS_MLO = -A $(ARCH) -T gpimage -C none \
|
2022-10-21 00:22:39 +00:00
|
|
|
-a $(CONFIG_TEXT_BASE) -e $(CONFIG_TEXT_BASE) -n U-Boot
|
2017-06-16 22:25:14 +00:00
|
|
|
MLO: u-boot.bin FORCE
|
2015-08-17 14:24:49 +00:00
|
|
|
$(call if_changed,mkimage)
|
|
|
|
@dd if=/dev/zero bs=8 count=1 2>/dev/null >> $@
|
2015-08-17 14:24:50 +00:00
|
|
|
endif
|