From cd7fa91d00c490db3974286a7b7eed4f77e10cec Mon Sep 17 00:00:00 2001 From: Tero Kristo Date: Tue, 20 Oct 2020 12:52:12 +0000 Subject: [PATCH] arm: mach-k3: common: fix build failure for HS devices HSM rearch support series inadvertently broke HS build. Fix by removing the offending piece of code conditionally via config flags. Signed-off-by: Tero Kristo [praneeth@ti.com: cherry-pick from ti-u-boot-2020.01] Signed-off-by: Praneeth Bajjuri --- arch/arm/mach-k3/common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-k3/common.c b/arch/arm/mach-k3/common.c index 5fc114327b..180e7f023e 100644 --- a/arch/arm/mach-k3/common.c +++ b/arch/arm/mach-k3/common.c @@ -259,6 +259,7 @@ void __noreturn jump_to_image_no_args(struct spl_image_info *spl_image) void board_fit_image_post_process(const void *fit, int node, void **p_image, size_t *p_size) { +#ifdef CONFIG_SYS_K3_SPL_ATF int len; int i; const char *os; @@ -278,6 +279,7 @@ void board_fit_image_post_process(const void *fit, int node, void **p_image, break; } } +#endif #ifdef CONFIG_TI_SECURE_DEVICE ti_secure_image_post_process(p_image, p_size);