2023-05-11 12:20:27 +05:30
|
|
|
set(srcs "app_main.c")
|
|
|
|
|
|
|
|
if(CONFIG_SOC_MPI_SUPPORTED)
|
|
|
|
list(APPEND srcs "mpi/test_mpi.c")
|
|
|
|
endif()
|
|
|
|
|
2023-05-11 15:28:02 +05:30
|
|
|
if(CONFIG_SOC_ECC_SUPPORTED)
|
|
|
|
list(APPEND srcs "ecc/test_ecc.c")
|
|
|
|
endif()
|
|
|
|
|
2023-05-11 16:31:00 +05:30
|
|
|
if(CONFIG_SOC_HMAC_SUPPORTED)
|
|
|
|
list(APPEND srcs "hmac/test_hmac.c")
|
|
|
|
endif()
|
2023-05-11 12:20:27 +05:30
|
|
|
|
2023-05-11 18:04:48 +05:30
|
|
|
if(CONFIG_SOC_DIG_SIGN_SUPPORTED)
|
|
|
|
list(APPEND srcs "ds/test_ds.c")
|
|
|
|
endif()
|
|
|
|
|
2023-05-15 12:20:03 +05:30
|
|
|
if(CONFIG_SOC_ECDSA_SUPPORTED)
|
|
|
|
list(APPEND srcs "ecdsa/test_ecdsa.c")
|
|
|
|
endif()
|
|
|
|
|
2023-08-28 15:44:47 +05:30
|
|
|
if(CONFIG_SOC_AES_SUPPORTED)
|
|
|
|
list(APPEND srcs "aes/aes_block.c")
|
|
|
|
list(APPEND srcs "aes/test_aes_block.c")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(CONFIG_SOC_SHA_SUPPORTED)
|
|
|
|
if(NOT CONFIG_SOC_SHA_SUPPORT_PARALLEL_ENG)
|
|
|
|
list(APPEND srcs "sha/sha_block.c")
|
|
|
|
list(APPEND srcs "sha/test_sha_block.c")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2023-05-11 12:20:27 +05:30
|
|
|
idf_component_register(SRCS ${srcs}
|
|
|
|
REQUIRES test_utils unity
|
|
|
|
WHOLE_ARCHIVE)
|