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 <devaraj.ranganna@arm.com>
pull/10829/head
Devaraj Ranganna 2019-06-13 11:26:31 +01:00
parent 910a402ce6
commit cb748c5608
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@
#include <stdbool.h>
#include "secure_utilities.h"
#include "tfm_api.h"
#if TFM_PSA_API
#ifdef TFM_PSA_API
#include "tfm_utils.h"
#include "tfm_internal.h"
#endif

View File

@ -112,7 +112,7 @@ enum spm_err_t tfm_spm_db_init(void)
part_ptr = &(g_spm_partition_db.partitions[
g_spm_partition_db.partition_count]);
part_ptr->static_data.partition_id = TFM_SP_NON_SECURE_ID;
#if TFM_PSA_API
#ifdef TFM_PSA_API
part_ptr->static_data.partition_flags = SPM_PART_FLAG_APP_ROT |
SPM_PART_FLAG_IPC;
part_ptr->static_data.partition_priority = TFM_PRIORITY_LOW;