mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-07 06:42:56 +03:00
test-ref-configs: test config-tfm.h
Tweak some configurations based on TF-M config in order to get a successful build and test. Signed-off-by: Yanray Wang <yanray.wang@arm.com>
This commit is contained in:
@@ -25,3 +25,23 @@
|
|||||||
|
|
||||||
/* TF-M PSA Crypto Configuration */
|
/* TF-M PSA Crypto Configuration */
|
||||||
#define MBEDTLS_PSA_CRYPTO_CONFIG_FILE "../configs/ext/crypto_config_profile_medium.h"
|
#define MBEDTLS_PSA_CRYPTO_CONFIG_FILE "../configs/ext/crypto_config_profile_medium.h"
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
/* Tweak configuration based on TF-M config for a successful build and test. */
|
||||||
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
/* MBEDTLS_PSA_CRYPTO_SPM needs third party files, so disable it. */
|
||||||
|
#undef MBEDTLS_PSA_CRYPTO_SPM
|
||||||
|
/* TF-M provides its own (dummy) implemenations which Mbed TLS doesn't need. */
|
||||||
|
#undef MBEDTLS_AES_SETKEY_DEC_ALT
|
||||||
|
#undef MBEDTLS_AES_DECRYPT_ALT
|
||||||
|
/* pkparse.c fails to link without this. */
|
||||||
|
#define MBEDTLS_OID_C
|
||||||
|
|
||||||
|
/* Since MBEDTLS_PSA_CRYPTO_STORAGE_C is disabled, we need to disable this to
|
||||||
|
pass test_suite_psa_crypto_slot_management. */
|
||||||
|
#undef MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER
|
||||||
|
/* Use built-in platform entropy functions. */
|
||||||
|
#undef MBEDTLS_NO_PLATFORM_ENTROPY
|
||||||
|
/* Disable buffer-based memory allocator */
|
||||||
|
#undef MBEDTLS_MEMORY_BUFFER_ALLOC_C
|
||||||
|
@@ -53,6 +53,9 @@ my %configs = (
|
|||||||
'opt' => '-f ECJPAKE.*nolog',
|
'opt' => '-f ECJPAKE.*nolog',
|
||||||
'test_again_with_use_psa' => 1,
|
'test_again_with_use_psa' => 1,
|
||||||
},
|
},
|
||||||
|
'config-tfm.h' => {
|
||||||
|
'test_again_with_use_psa' => 0, # Uses PSA by default, no need to test it twice
|
||||||
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
# If no config-name is provided, use all known configs.
|
# If no config-name is provided, use all known configs.
|
||||||
|
Reference in New Issue
Block a user