Skip to content

Commit cb8f2c0

Browse files
committed
1. Include MBEDTLS_CONFIG_FILE before evaluating MBEDTLS_PSA_CRYPTO_C
2. Remove macro MBEDTLS_PSA_CRYPTO_C from PSA targets Signed-off-by: Devaraj Ranganna <[email protected]>
1 parent 66b7165 commit cb8f2c0

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

components/TARGET_PSA/services/attestation/COMPONENT_PSA_SRV_IMPL/attest_crypto.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
* See BSD-3-Clause license in README.md
99
*/
1010

11+
#if !defined(MBEDTLS_CONFIG_FILE)
12+
#include "mbedtls/config.h"
13+
#else
14+
#include MBEDTLS_CONFIG_FILE
15+
#endif
16+
1117
#include "t_cose_crypto.h"
1218
#include "tfm_plat_defs.h"
1319
#include "psa/crypto.h"

components/TARGET_PSA/services/crypto/COMPONENT_PSA_SRV_IPC/psa_crypto_spm.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
* This file is part of mbed TLS (https://tls.mbed.org)
2020
*/
2121

22+
#if !defined(MBEDTLS_CONFIG_FILE)
23+
#include "mbedtls/config.h"
24+
#else
25+
#include MBEDTLS_CONFIG_FILE
26+
#endif
27+
2228
#if defined(MBEDTLS_PSA_CRYPTO_C)
2329

2430
#include <stdlib.h>

targets/targets.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2125,8 +2125,7 @@
21252125
"__STARTUP_COPY_MULTIPLE",
21262126
"MBED_MPU_CUSTOM",
21272127
"DAUTH_CHIP_DEFAULT",
2128-
"MBEDTLS_PSA_CRYPTO_SPM",
2129-
"MBEDTLS_PSA_CRYPTO_C"
2128+
"MBEDTLS_PSA_CRYPTO_SPM"
21302129
],
21312130
"components_add": ["FLASHIAP"],
21322131
"extra_labels_add": [
@@ -5470,7 +5469,6 @@
54705469
"MBED_MPU_CUSTOM",
54715470
"DAUTH_CHIP_DEFAULT",
54725471
"MBEDTLS_PSA_CRYPTO_SPM",
5473-
"MBEDTLS_PSA_CRYPTO_C",
54745472
"MBEDTLS_ENTROPY_NV_SEED"
54755473
],
54765474
"components_add": ["FLASHIAP"],
@@ -8309,7 +8307,6 @@
83098307
"macros_add": [
83108308
"MBED_TICKLESS",
83118309
"MBEDTLS_PSA_CRYPTO_SPM",
8312-
"MBEDTLS_PSA_CRYPTO_C",
83138310
"PU_ENABLE"
83148311
],
83158312
"deliver_to_target": "CY8CKIT_062_WIFI_BT_PSA",

0 commit comments

Comments
 (0)