-
Notifications
You must be signed in to change notification settings - Fork 97
/
define_linux_psa.txt
27 lines (21 loc) · 878 Bytes
/
define_linux_psa.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
include(${CMAKE_SOURCE_DIR}/define.txt)
### MBEDTLS PSA Crypto ###
OPTION(USE_CRYPTO_SUBMODULE "Build and use libmbedcrypto from the crypto submodule." ON)
option(LINK_WITH_TRUSTED_STORAGE "Explicitly link mbed TLS library to trusted_storage." ON)
add_definitions(
-DPSA_STORAGE_USER_CONFIG_FILE="\\"psa_storage_user_config.h"\\"
-DMBED_CONF_MBED_CLOUD_CLIENT_PSA_SUPPORT
-DMBEDTLS_USE_PSA_CRYPTO
-DMBEDTLS_PSA_CRYPTO_C
-DMBEDTLS_PSA_CRYPTO_STORAGE_C
)
if(PARSEC_TPM_SE_SUPPORT)
add_definitions(
-DMBEDTLS_PSA_CRYPTO_SE_C
-DMBED_CONF_MBED_CLOUD_CLIENT_SECURE_ELEMENT_SUPPORT
-DMBED_CONF_APP_SECURE_ELEMENT_PARSEC_TPM_SUPPORT
-DMBED_CONF_MBED_CLOUD_CLIENT_NON_PROVISIONED_SECURE_ELEMENT
)
endif()
# curl fix - https://github.com/curl/curl/issues/7988
set (CURL_USE_OPENSSL OFF CACHE BOOL "disable openssl" FORCE)