Skip to content

Commit d4aab56

Browse files
authored
Merge pull request #10888 from devran01/issue/10883
Remove macro MBEDTLS_PSA_CRYPTO_C from PSA targets
2 parents 8a7f591 + bd9d615 commit d4aab56

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
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: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2074,7 +2074,6 @@
20742074
"MBED_FAULT_HANDLER_DISABLED",
20752075
"CMSIS_NVIC_VIRTUAL",
20762076
"MBED_MPU_CUSTOM",
2077-
"MBEDTLS_PSA_CRYPTO_C",
20782077
"NXP_LPADC"
20792078
],
20802079
"components_add": ["FLASHIAP"],
@@ -2125,8 +2124,7 @@
21252124
"__STARTUP_COPY_MULTIPLE",
21262125
"MBED_MPU_CUSTOM",
21272126
"DAUTH_CHIP_DEFAULT",
2128-
"MBEDTLS_PSA_CRYPTO_SPM",
2129-
"MBEDTLS_PSA_CRYPTO_C"
2127+
"MBEDTLS_PSA_CRYPTO_SPM"
21302128
],
21312129
"components_add": ["FLASHIAP"],
21322130
"extra_labels_add": [
@@ -5455,8 +5453,7 @@
54555453
"MBED_FAULT_HANDLER_DISABLED",
54565454
"CMSIS_NVIC_VIRTUAL",
54575455
"LPTICKER_DELAY_TICKS=1",
5458-
"MBED_MPU_CUSTOM",
5459-
"MBEDTLS_PSA_CRYPTO_C"
5456+
"MBED_MPU_CUSTOM"
54605457
],
54615458
"extra_labels_add": ["MUSCA_A1_NS", "PSA", "TFM"],
54625459
"post_binary_hook": {"function": "ArmMuscaA1Code.binary_hook"},
@@ -5479,7 +5476,6 @@
54795476
"MBED_MPU_CUSTOM",
54805477
"DAUTH_CHIP_DEFAULT",
54815478
"MBEDTLS_PSA_CRYPTO_SPM",
5482-
"MBEDTLS_PSA_CRYPTO_C",
54835479
"MBEDTLS_ENTROPY_NV_SEED"
54845480
],
54855481
"components_add": ["FLASHIAP"],
@@ -8318,7 +8314,6 @@
83188314
"macros_add": [
83198315
"MBED_TICKLESS",
83208316
"MBEDTLS_PSA_CRYPTO_SPM",
8321-
"MBEDTLS_PSA_CRYPTO_C",
83228317
"PU_ENABLE"
83238318
],
83248319
"deliver_to_target": "CY8CKIT_062_WIFI_BT_PSA",
@@ -8343,7 +8338,6 @@
83438338
"extra_labels_add": ["PSA", "MBED_SPM"],
83448339
"components_add": ["SPM_MAILBOX", "FLASHIAP"],
83458340
"device_has_remove": ["CRC"],
8346-
"macros_add": ["MBEDTLS_PSA_CRYPTO_C"],
83478341
"hex_filename": "psa_release_1.0.hex",
83488342
"overrides": {
83498343
"secure-rom-start": "0x10000000",

0 commit comments

Comments
 (0)