platform : Added deprecation warnings for musca_a
This patch modifies the cmake configuration
for musca_a 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: Hugo L'Hostis <hugo.lhostis@arm.com>
Change-Id: Iac9adb5d25fd46d843f0655cfa553889f45fbbbe
diff --git a/docs/contributing/platform_deprecation.rst b/docs/contributing/platform_deprecation.rst
index 52fca23..cbb3b83 100644
--- a/docs/contributing/platform_deprecation.rst
+++ b/docs/contributing/platform_deprecation.rst
@@ -57,6 +57,8 @@
| mps2/an539 | v1.2.0 | N.A |
+------------------------------+-----------+-----------------------------------+
| mps2/sse-200_aws | v1.3.0 | N.A |
+|------------------------------------------------------------------------------|
+| musca_a | v1.3.0 | N.A |
+------------------------------+-----------+-----------------------------------+
--------------
diff --git a/platform/ext/target/musca_a/CMakeLists.txt b/platform/ext/target/musca_a/CMakeLists.txt
index 45d583f..5411842 100644
--- a/platform/ext/target/musca_a/CMakeLists.txt
+++ b/platform/ext/target/musca_a/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/musca_a/spm_hal.c b/platform/ext/target/musca_a/spm_hal.c
index 59c4b96..8f157d4 100644
--- a/platform/ext/target/musca_a/spm_hal.c
+++ b/platform/ext/target/musca_a/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
*
@@ -14,6 +14,8 @@
#include "mpu_armv8m_drv.h"
#include "region_defs.h"
#include "utilities.h"
+#include "tfm_hal_platform.h"
+#include "log/tfm_log.h"
/* Import MPC driver */
extern ARM_DRIVER_MPC Driver_CODE_SRAM_MPC;
@@ -195,3 +197,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] MUSCA_A is marked for \
+ deprecation!\033[0m\r\n");
+
+ return TFM_HAL_SUCCESS;
+}