2024-07-25 15:43:42 +02:00
|
|
|
set(p256m_target ${TF_PSA_CRYPTO_TARGET_PREFIX}p256m)
|
2023-09-28 17:52:52 +01:00
|
|
|
|
|
|
|
add_library(${p256m_target}
|
2023-04-18 17:00:17 +01:00
|
|
|
p256-m_driver_entrypoints.c
|
|
|
|
p256-m/p256-m.c)
|
|
|
|
|
2024-10-07 16:17:07 +02:00
|
|
|
set_base_compile_options(${p256m_target})
|
|
|
|
|
2023-09-28 17:52:52 +01:00
|
|
|
target_include_directories(${p256m_target}
|
2023-04-18 17:00:17 +01:00
|
|
|
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
|
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/p256-m>
|
|
|
|
$<BUILD_INTERFACE:${MBEDTLS_DIR}/include>
|
2024-07-25 09:22:39 +02:00
|
|
|
$<BUILD_INTERFACE:${TF_PSA_CRYPTO_DIR}/include>
|
|
|
|
$<BUILD_INTERFACE:${TF_PSA_CRYPTO_DIR}/drivers/builtin/include>
|
2024-08-22 15:26:05 +01:00
|
|
|
$<BUILD_INTERFACE:${TF_PSA_CRYPTO_DIR}/drivers/everest/include>
|
2023-04-18 17:00:17 +01:00
|
|
|
$<INSTALL_INTERFACE:include>
|
2024-07-01 14:50:54 +02:00
|
|
|
PRIVATE ${MBEDTLS_DIR}/library/
|
2024-07-25 09:22:39 +02:00
|
|
|
${TF_PSA_CRYPTO_DIR}/core)
|
2024-10-23 14:22:03 +02:00
|
|
|
set_config_files_compile_definitions(${p256m_target})
|
2023-10-02 10:46:59 +01:00
|
|
|
|
2024-07-25 15:43:42 +02:00
|
|
|
if(INSTALL_TF_PSA_CRYPTO_HEADERS)
|
2023-04-18 17:00:17 +01:00
|
|
|
|
2024-10-11 16:37:23 +02:00
|
|
|
install(DIRECTORY p256-m
|
2023-04-18 17:00:17 +01: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 15:43:42 +02:00
|
|
|
endif(INSTALL_TF_PSA_CRYPTO_HEADERS)
|
2023-04-18 17:00:17 +01:00
|
|
|
|
2023-09-28 17:52:52 +01:00
|
|
|
install(TARGETS ${p256m_target}
|
2024-10-11 16:37:23 +02:00
|
|
|
EXPORT MbedTLSTargets
|
|
|
|
DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
|
|
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
|
2024-10-11 19:39:49 +02:00
|
|
|
|
|
|
|
install(TARGETS ${p256m_target}
|
|
|
|
EXPORT TF-PSA-CryptoTargets
|
|
|
|
DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
|
|
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
|