Skip to content

Commit

Permalink
1. Include MBEDTLS_CONFIG_FILE before evaluating MBEDTLS_PSA_CRYPTO_C
Browse files Browse the repository at this point in the history
2. Remove macro MBEDTLS_PSA_CRYPTO_C from PSA targets

Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
  • Loading branch information
urutva committed Jun 24, 2019
1 parent 66b7165 commit cb8f2c0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
* See BSD-3-Clause license in README.md
*/

#if !defined(MBEDTLS_CONFIG_FILE)
#include "mbedtls/config.h"
#else
#include MBEDTLS_CONFIG_FILE
#endif

#include "t_cose_crypto.h"
#include "tfm_plat_defs.h"
#include "psa/crypto.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
* This file is part of mbed TLS (https://tls.mbed.org)
*/

#if !defined(MBEDTLS_CONFIG_FILE)
#include "mbedtls/config.h"
#else
#include MBEDTLS_CONFIG_FILE
#endif

#if defined(MBEDTLS_PSA_CRYPTO_C)

#include <stdlib.h>
Expand Down
5 changes: 1 addition & 4 deletions targets/targets.json
Original file line number Diff line number Diff line change
Expand Up @@ -2125,8 +2125,7 @@
"__STARTUP_COPY_MULTIPLE",
"MBED_MPU_CUSTOM",
"DAUTH_CHIP_DEFAULT",
"MBEDTLS_PSA_CRYPTO_SPM",
"MBEDTLS_PSA_CRYPTO_C"
"MBEDTLS_PSA_CRYPTO_SPM"
],
"components_add": ["FLASHIAP"],
"extra_labels_add": [
Expand Down Expand Up @@ -5470,7 +5469,6 @@
"MBED_MPU_CUSTOM",
"DAUTH_CHIP_DEFAULT",
"MBEDTLS_PSA_CRYPTO_SPM",
"MBEDTLS_PSA_CRYPTO_C",
"MBEDTLS_ENTROPY_NV_SEED"
],
"components_add": ["FLASHIAP"],
Expand Down Expand Up @@ -8309,7 +8307,6 @@
"macros_add": [
"MBED_TICKLESS",
"MBEDTLS_PSA_CRYPTO_SPM",
"MBEDTLS_PSA_CRYPTO_C",
"PU_ENABLE"
],
"deliver_to_target": "CY8CKIT_062_WIFI_BT_PSA",
Expand Down

0 comments on commit cb8f2c0

Please sign in to comment.