From 425ace7d94e9b5202433bc3e2a68ebcabcb08f41 Mon Sep 17 00:00:00 2001
From: Madhukar Pappireddy <madhukar.pappireddy@arm.com>
Date: Mon, 22 Jul 2019 17:39:51 -0500
Subject: [PATCH] sgm775: Fix build fail for TSP support on sgm775

Fixed the path to a source file specified in tsp makefile
Created a platform specific tsp makefile

Change-Id: I89565127c67eff510e48e21fd450af4c3088c2d4
Signed-off-by: Madhukar Pappireddy <madhukar.pappireddy@arm.com>
---
 plat/arm/board/sgm775/tsp/tsp-sgm775.mk          | 7 +++++++
 plat/arm/css/sgm/include/sgm_base_platform_def.h | 5 -----
 plat/arm/css/sgm/tsp/tsp-sgm.mk                  | 2 +-
 3 files changed, 8 insertions(+), 6 deletions(-)
 create mode 100644 plat/arm/board/sgm775/tsp/tsp-sgm775.mk

diff --git a/plat/arm/board/sgm775/tsp/tsp-sgm775.mk b/plat/arm/board/sgm775/tsp/tsp-sgm775.mk
new file mode 100644
index 000000000..129b586e4
--- /dev/null
+++ b/plat/arm/board/sgm775/tsp/tsp-sgm775.mk
@@ -0,0 +1,7 @@
+#
+# Copyright (c) 2019, ARM Limited and Contributors. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+include plat/arm/css/sgm/tsp/tsp-sgm.mk
\ No newline at end of file
diff --git a/plat/arm/css/sgm/include/sgm_base_platform_def.h b/plat/arm/css/sgm/include/sgm_base_platform_def.h
index 85818446e..4ecfc969a 100644
--- a/plat/arm/css/sgm/include/sgm_base_platform_def.h
+++ b/plat/arm/css/sgm/include/sgm_base_platform_def.h
@@ -133,11 +133,6 @@
 #define PLAT_CSS_PRIMARY_CPU_BIT_WIDTH		4
 #endif
 
-/*
- * tspd support is conditional so enable this for CSS sgm platforms.
- */
-#define SPD_tspd
-
 /*
  * PLAT_CSS_MAX_SCP_BL2_SIZE is calculated using the current
  * SCP_BL2 size plus a little space for growth.
diff --git a/plat/arm/css/sgm/tsp/tsp-sgm.mk b/plat/arm/css/sgm/tsp/tsp-sgm.mk
index a9e413163..de5e5b797 100644
--- a/plat/arm/css/sgm/tsp/tsp-sgm.mk
+++ b/plat/arm/css/sgm/tsp/tsp-sgm.mk
@@ -6,6 +6,6 @@
 
 BL32_SOURCES		+= 	${SGM_GIC_SOURCES}			\
 				${CSS_SGM_BASE}/sgm_plat_config.c	\
-				plat/arm/board/sgm/tsp/sgm_tsp_setup.c
+				plat/arm/css/sgm/tsp/sgm_tsp_setup.c
 
 include plat/arm/common/tsp/arm_tsp.mk
-- 
GitLab