2024-07-25 13:43:42 +00:00
|
|
|
set(p256m_target ${TF_PSA_CRYPTO_TARGET_PREFIX}p256m)
|
2023-09-28 16:52:52 +00:00
|
|
|
|
|
|
|
add_library(${p256m_target}
|
2023-04-18 16:00:17 +00:00
|
|
|
p256-m_driver_entrypoints.c
|
|
|
|
p256-m/p256-m.c)
|
|
|
|
|
2024-10-07 14:17:07 +00:00
|
|
|
set_base_compile_options(${p256m_target})
|
|
|
|
|
2023-09-28 16:52:52 +00:00
|
|
|
target_include_directories(${p256m_target}
|
2023-04-18 16:00:17 +00:00
|
|
|
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
|
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/p256-m>
|
|
|
|
$<BUILD_INTERFACE:${MBEDTLS_DIR}/include>
|
2024-07-25 07:22:39 +00:00
|
|
|
$<BUILD_INTERFACE:${TF_PSA_CRYPTO_DIR}/include>
|
|
|
|
$<BUILD_INTERFACE:${TF_PSA_CRYPTO_DIR}/drivers/builtin/include>
|
2024-08-22 14:26:05 +00:00
|
|
|
$<BUILD_INTERFACE:${TF_PSA_CRYPTO_DIR}/drivers/everest/include>
|
2023-04-18 16:00:17 +00:00
|
|
|
$<INSTALL_INTERFACE:include>
|
2024-07-01 12:50:54 +00:00
|
|
|
PRIVATE ${MBEDTLS_DIR}/library/
|
2024-07-25 07:22:39 +00:00
|
|
|
${TF_PSA_CRYPTO_DIR}/core)
|
2024-10-23 12:22:03 +00:00
|
|
|
set_config_files_compile_definitions(${p256m_target})
|
2023-10-02 09:46:59 +00:00
|
|
|
|
2024-07-25 13:43:42 +00:00
|
|
|
if(INSTALL_TF_PSA_CRYPTO_HEADERS)
|
2023-04-18 16:00:17 +00:00
|
|
|
|
2024-10-11 14:37:23 +00:00
|
|
|
install(DIRECTORY p256-m
|
2023-04-18 16:00:17 +00:00
|
|
|
DESTINATION include
|
|
|
|
FILE_PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
|
|
|
|
DIRECTORY_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
|
|
|
|
FILES_MATCHING PATTERN "*.h")
|
|
|
|
|
2024-07-25 13:43:42 +00:00
|
|
|
endif(INSTALL_TF_PSA_CRYPTO_HEADERS)
|
2023-04-18 16:00:17 +00:00
|
|
|
|
2023-09-28 16:52:52 +00:00
|
|
|
install(TARGETS ${p256m_target}
|
2024-10-11 14:37:23 +00:00
|
|
|
EXPORT MbedTLSTargets
|
|
|
|
DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
|
|
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
|