platform: Added deprecation warnings for sse-200_aws
This patch modifies the cmake configuration
for sse-200_aws to display the deprecation warning at build-time.
It also adds a LOG_MESSAGE entry on the spm_hal which
displays a run-time notification.
The Deprecated Platforms section of the documentation is
updated to reflect this status change.
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
Change-Id: I3b29fd02a29ecb89d0eec241211a281356f51198
diff --git a/docs/contributing/platform_deprecation.rst b/docs/contributing/platform_deprecation.rst
index d9d00ff..52fca23 100644
--- a/docs/contributing/platform_deprecation.rst
+++ b/docs/contributing/platform_deprecation.rst
@@ -56,7 +56,9 @@
+==============================+===========+===================================+
| mps2/an539 | v1.2.0 | N.A |
+------------------------------+-----------+-----------------------------------+
+| mps2/sse-200_aws | v1.3.0 | N.A |
++------------------------------+-----------+-----------------------------------+
--------------
-*Copyright (c) 2020, Arm Limited. All rights reserved.*
+*Copyright (c) 2020-2021, Arm Limited. All rights reserved.*
diff --git a/platform/ext/target/mps2/sse-200_aws/CMakeLists.txt b/platform/ext/target/mps2/sse-200_aws/CMakeLists.txt
index ff7f9b2..3e24b87 100644
--- a/platform/ext/target/mps2/sse-200_aws/CMakeLists.txt
+++ b/platform/ext/target/mps2/sse-200_aws/CMakeLists.txt
@@ -8,6 +8,8 @@
cmake_policy(SET CMP0076 NEW)
set(CMAKE_CURRENT_SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR})
+message(DEPRECATION "${TFM_PLATFORM} has been marked for deprecation.")
+
#========================= Platform region defs ===============================#
target_include_directories(platform_region_defs
diff --git a/platform/ext/target/mps2/sse-200_aws/spm_hal.c b/platform/ext/target/mps2/sse-200_aws/spm_hal.c
index a573b38..3fbb47d 100644
--- a/platform/ext/target/mps2/sse-200_aws/spm_hal.c
+++ b/platform/ext/target/mps2/sse-200_aws/spm_hal.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018-2020, Arm Limited. All rights reserved.
+ * Copyright (c) 2018-2021, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
@@ -15,7 +15,8 @@
#include "region_defs.h"
#include "utilities.h"
#include "region.h"
-
+#include "tfm_hal_platform.h"
+#include "interface/include/log/tfm_log.h"
/* Import MPC driver */
@@ -163,3 +164,13 @@
{
return nvic_interrupt_enable();
}
+
+enum tfm_hal_status_t tfm_hal_platform_init(void)
+{
+ __enable_irq();
+ stdio_init();
+ LOG_MSG("\033[1;34m[Platform] sse-200_aws is marked for \
+ deprecation!\033[0m\r\n");
+
+ return TFM_HAL_SUCCESS;
+}