mirror of
https://github.com/ARMmbed/mbedtls.git
synced 2025-05-09 00:21:18 +08:00
Merge pull request #8892 from paul-elliott-arm/add_threading_to_drivers
Ensure drivers have threading enabled if required
This commit is contained in:
commit
8a2062c538
@ -40,5 +40,7 @@
|
|||||||
//#define MBEDTLS_MD_C
|
//#define MBEDTLS_MD_C
|
||||||
//#define MBEDTLS_PEM_PARSE_C
|
//#define MBEDTLS_PEM_PARSE_C
|
||||||
//#define MBEDTLS_BASE64_C
|
//#define MBEDTLS_BASE64_C
|
||||||
|
//#define MBEDTLS_THREADING_C
|
||||||
|
//#define MBEDTLS_THREADING_PTHREAD
|
||||||
|
|
||||||
#endif /* MBEDTLS_CONFIG_H */
|
#endif /* MBEDTLS_CONFIG_H */
|
||||||
|
@ -900,6 +900,16 @@ helper_libtestdriver1_adjust_config() {
|
|||||||
# Dynamic secure element support is a deprecated feature and needs to be disabled here.
|
# Dynamic secure element support is a deprecated feature and needs to be disabled here.
|
||||||
# This is done to have the same form of psa_key_attributes_s for libdriver and library.
|
# This is done to have the same form of psa_key_attributes_s for libdriver and library.
|
||||||
scripts/config.py unset MBEDTLS_PSA_CRYPTO_SE_C
|
scripts/config.py unset MBEDTLS_PSA_CRYPTO_SE_C
|
||||||
|
|
||||||
|
# If threading is enabled on the normal build, then we need to enable it in the drivers as well,
|
||||||
|
# otherwise we will end up running multithreaded tests without mutexes to protect them.
|
||||||
|
if scripts/config.py get MBEDTLS_THREADING_C; then
|
||||||
|
scripts/config.py -f "$CONFIG_TEST_DRIVER_H" set MBEDTLS_THREADING_C
|
||||||
|
fi
|
||||||
|
|
||||||
|
if scripts/config.py get MBEDTLS_THREADING_PTHREAD; then
|
||||||
|
scripts/config.py -f "$CONFIG_TEST_DRIVER_H" set MBEDTLS_THREADING_PTHREAD
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# When called with no parameter this function disables all builtin curves.
|
# When called with no parameter this function disables all builtin curves.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user