aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorMark Horvath <mark.horvath@arm.com>2021-02-03 15:30:37 +0100
committerDavid Hu <david.hu@arm.com>2021-02-05 02:50:09 +0000
commitba815f74a34d71ebde4594bc629c1ee4e881bcc7 (patch)
treee4e7b958f3556ed959198104603fc6eb28afb21a /cmake
parentbcae38be2afd54ca7699eb8a85bb2eda12a2346d (diff)
downloadtrusted-firmware-m-ba815f74a34d71ebde4594bc629c1ee4e881bcc7.tar.gz
Build: Fix install if FORWARD_PROT_MSG is set
If the PSA RoT messages are forwarded (by the PSA proxy service) then the interface headers and sources of the PSA RoT services need to be installed. Signed-off-by: Mark Horvath <mark.horvath@arm.com> Change-Id: Ie737f4924db534e5bc56f4eba4bbeab498bab870
Diffstat (limited to 'cmake')
-rw-r--r--cmake/install.cmake20
1 files changed, 10 insertions, 10 deletions
diff --git a/cmake/install.cmake b/cmake/install.cmake
index 106369ec8..11a8076a2 100644
--- a/cmake/install.cmake
+++ b/cmake/install.cmake
@@ -69,18 +69,18 @@ if (TFM_NS_CLIENT_IDENTIFICATION)
DESTINATION ${INSTALL_INTERFACE_INC_DIR})
endif()
-if (TFM_PARTITION_PROTECTED_STORAGE)
+if (TFM_PARTITION_PROTECTED_STORAGE OR FORWARD_PROT_MSG)
install(FILES ${INTERFACE_INC_DIR}/psa/protected_storage.h
DESTINATION ${INSTALL_INTERFACE_INC_DIR}/psa)
endif()
-if (TFM_PARTITION_INTERNAL_TRUSTED_STORAGE)
+if (TFM_PARTITION_INTERNAL_TRUSTED_STORAGE OR FORWARD_PROT_MSG)
install(FILES ${INTERFACE_INC_DIR}/psa/internal_trusted_storage.h
${INTERFACE_INC_DIR}/psa/storage_common.h
DESTINATION ${INSTALL_INTERFACE_INC_DIR}/psa)
endif()
-if (TFM_PARTITION_CRYPTO)
+if (TFM_PARTITION_CRYPTO OR FORWARD_PROT_MSG)
install(FILES ${INTERFACE_INC_DIR}/psa/crypto_extra.h
${INTERFACE_INC_DIR}/psa/crypto_compat.h
${INTERFACE_INC_DIR}/psa/crypto.h
@@ -94,7 +94,7 @@ if (TFM_PARTITION_CRYPTO)
DESTINATION ${INSTALL_INTERFACE_INC_DIR})
endif()
-if (TFM_PARTITION_INITIAL_ATTESTATION)
+if (TFM_PARTITION_INITIAL_ATTESTATION OR FORWARD_PROT_MSG)
install(FILES ${INTERFACE_INC_DIR}/psa/initial_attestation.h
DESTINATION ${INSTALL_INTERFACE_INC_DIR}/psa)
endif()
@@ -105,7 +105,7 @@ if(TFM_PARTITION_AUDIT_LOG)
DESTINATION ${INSTALL_INTERFACE_INC_DIR})
endif()
-if(TFM_PARTITION_PLATFORM)
+if(TFM_PARTITION_PLATFORM OR FORWARD_PROT_MSG)
install(FILES ${INTERFACE_INC_DIR}/tfm_platform_api.h
DESTINATION ${INSTALL_INTERFACE_INC_DIR})
endif()
@@ -134,7 +134,7 @@ if (TFM_NS_CLIENT_IDENTIFICATION)
DESTINATION ${INSTALL_INTERFACE_SRC_DIR})
endif()
-if (TFM_PARTITION_PROTECTED_STORAGE)
+if (TFM_PARTITION_PROTECTED_STORAGE OR FORWARD_PROT_MSG)
if (TFM_PSA_API)
install(FILES ${INTERFACE_SRC_DIR}/tfm_ps_ipc_api.c
DESTINATION ${INSTALL_INTERFACE_SRC_DIR})
@@ -144,7 +144,7 @@ if (TFM_PARTITION_PROTECTED_STORAGE)
endif()
endif()
-if (TFM_PARTITION_INTERNAL_TRUSTED_STORAGE)
+if (TFM_PARTITION_INTERNAL_TRUSTED_STORAGE OR FORWARD_PROT_MSG)
if (TFM_PSA_API)
install(FILES ${INTERFACE_SRC_DIR}/tfm_its_ipc_api.c
DESTINATION ${INSTALL_INTERFACE_SRC_DIR})
@@ -154,7 +154,7 @@ if (TFM_PARTITION_INTERNAL_TRUSTED_STORAGE)
endif()
endif()
-if (TFM_PARTITION_CRYPTO)
+if (TFM_PARTITION_CRYPTO OR FORWARD_PROT_MSG)
if (TFM_PSA_API)
install(FILES ${INTERFACE_SRC_DIR}/tfm_crypto_ipc_api.c
DESTINATION ${INSTALL_INTERFACE_SRC_DIR})
@@ -164,7 +164,7 @@ if (TFM_PARTITION_CRYPTO)
endif()
endif()
-if (TFM_PARTITION_INITIAL_ATTESTATION)
+if (TFM_PARTITION_INITIAL_ATTESTATION OR FORWARD_PROT_MSG)
if (TFM_PSA_API)
install(FILES ${INTERFACE_SRC_DIR}/tfm_initial_attestation_ipc_api.c
DESTINATION ${INSTALL_INTERFACE_SRC_DIR})
@@ -179,7 +179,7 @@ if(TFM_PARTITION_AUDIT_LOG)
DESTINATION ${INSTALL_INTERFACE_SRC_DIR})
endif()
-if(TFM_PARTITION_PLATFORM)
+if(TFM_PARTITION_PLATFORM OR FORWARD_PROT_MSG)
if(TFM_PSA_API)
install(FILES ${INTERFACE_SRC_DIR}/tfm_platform_ipc_api.c
DESTINATION ${INSTALL_INTERFACE_SRC_DIR})