Skip to content

Commit cb748c5

Browse files
committed
TF-M patch: Change #if TFM_PSA_API to #ifdef TFM_PSA_API to avoid
compiler errors as mbed-cli only generates "-D" macros only for "macros" defined in targets.json TF-M task link: https://developer.trustedfirmware.org/T396 Signed-off-by: Devaraj Ranganna <[email protected]>
1 parent 910a402 commit cb748c5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/TARGET_PSA/TARGET_TFM/COMPONENT_SPE/secure_fw/core/tfm_nspm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include <stdbool.h>
1010
#include "secure_utilities.h"
1111
#include "tfm_api.h"
12-
#if TFM_PSA_API
12+
#ifdef TFM_PSA_API
1313
#include "tfm_utils.h"
1414
#include "tfm_internal.h"
1515
#endif

components/TARGET_PSA/TARGET_TFM/COMPONENT_SPE/secure_fw/spm/spm_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ enum spm_err_t tfm_spm_db_init(void)
112112
part_ptr = &(g_spm_partition_db.partitions[
113113
g_spm_partition_db.partition_count]);
114114
part_ptr->static_data.partition_id = TFM_SP_NON_SECURE_ID;
115-
#if TFM_PSA_API
115+
#ifdef TFM_PSA_API
116116
part_ptr->static_data.partition_flags = SPM_PART_FLAG_APP_ROT |
117117
SPM_PART_FLAG_IPC;
118118
part_ptr->static_data.partition_priority = TFM_PRIORITY_LOW;

0 commit comments

Comments
 (0)