ARM: Keystone2: Build secure images for K2
authorMadan Srinivas <[email protected]>
Fri, 7 Apr 2017 15:00:06 +0000 (10:00 -0500)
committerTom Rini <[email protected]>
Sun, 9 Apr 2017 01:35:05 +0000 (21:35 -0400)
Adds an additional image type needed for supporting secure keystone
devices. The build generates u-boot_HS_MLO which can be used to boot
from all media on secure keystone devices.

Signed-off-by: Madan Srinivas <[email protected]>
Signed-off-by: Andrew F. Davis <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Reviewed-by: Lokesh Vutla <[email protected]>
arch/arm/mach-keystone/config.mk

index 9ae1e9ac91c1746701ccb6d5cd8fe9b1432540dd..db556ea0a846bf919512e17fc000a692bf2dca37 100644 (file)
@@ -5,9 +5,15 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
+include  $(srctree)/arch/arm/mach-omap2/config_secure.mk
+
 ifndef CONFIG_SPL_BUILD
+ifeq ($(CONFIG_TI_SECURE_DEVICE),y)
+ALL-y += u-boot_HS_MLO
+else
 ALL-y += MLO
 endif
+endif
 
 MKIMAGEFLAGS_u-boot-spl.gph = -A $(ARCH) -T gpimage -C none \
        -a $(CONFIG_SPL_TEXT_BASE) -e $(CONFIG_SPL_TEXT_BASE) -n SPL