diff options
author | David Hu <david.hu@arm.com> | 2020-01-09 10:55:23 +0800 |
---|---|---|
committer | David Hu <david.hu@arm.com> | 2020-01-13 12:25:28 +0800 |
commit | d704dd3dd3b436193d7ffaccdefca19b123ebbc4 (patch) | |
tree | fe5161f59edeeef947c8d7115de6ce843f69763a | |
parent | 7ffe5b49c5694dea47a545f62442fd6076d26c53 (diff) | |
download | trusted-firmware-m-d704dd3dd3b436193d7ffaccdefca19b123ebbc4.tar.gz |
Dualcpu: Add export files
Several files were not exported during multi-core building.
Add them back into the export list in multi-core topology.
Also skip some files not required in multi-core topology
Change-Id: I0de432cf4143a62468be3b46d383f07366e4e6b7
Signed-off-by: David Hu <david.hu@arm.com>
-rw-r--r-- | secure_fw/CMakeLists.txt | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/secure_fw/CMakeLists.txt b/secure_fw/CMakeLists.txt index 6a9b392b4c..e71971ec2e 100644 --- a/secure_fw/CMakeLists.txt +++ b/secure_fw/CMakeLists.txt @@ -1,5 +1,5 @@ #------------------------------------------------------------------------------- -# Copyright (c) 2017-2019, Arm Limited. All rights reserved. +# Copyright (c) 2017-2020, Arm Limited. All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause # @@ -343,18 +343,36 @@ function(set_up_secure_fw_build) ${INTERFACE_INC_DIR}/tfm_nspm_api.h ${INTERFACE_INC_DIR}/tfm_nspm_svc_handler.h ${INTERFACE_INC_DIR}/tfm_ns_svc.h - ${INTERFACE_INC_DIR}/tfm_veneers.h DESTINATION ${EXPORT_INC_DIR}) + if (TFM_MULTI_CORE_TOPOLOGY) + install(FILES ${INTERFACE_INC_DIR}/tfm_multi_core_api.h + ${INTERFACE_INC_DIR}/tfm_ns_mailbox.h + ${INTERFACE_INC_DIR}/tfm_mailbox.h + DESTINATION ${EXPORT_INC_DIR}) + else() + install(FILES ${INTERFACE_INC_DIR}/tfm_veneers.h + DESTINATION ${EXPORT_INC_DIR}) + endif() + #Sources - install(FILES ${INTERFACE_SRC_DIR}/tfm_ns_interface.c - ${INTERFACE_SRC_DIR}/tfm_nspm_api.c + install(FILES ${INTERFACE_SRC_DIR}/tfm_nspm_api.c ${INTERFACE_SRC_DIR}/tfm_nspm_svc_handler.c DESTINATION ${EXPORT_SRC_DIR}) - if(TFM_PSA_API) - install(FILES ${INTERFACE_SRC_DIR}/tfm_psa_ns_api.c + if (TFM_MULTI_CORE_TOPOLOGY) + install(FILES ${INTERFACE_SRC_DIR}/tfm_ns_mailbox.c + ${INTERFACE_SRC_DIR}/tfm_multi_core_api.c + ${INTERFACE_SRC_DIR}/tfm_multi_core_psa_ns_api.c DESTINATION ${EXPORT_SRC_DIR}) + else() + install(FILES ${INTERFACE_SRC_DIR}/tfm_ns_interface.c + DESTINATION ${EXPORT_SRC_DIR}) + + if(TFM_PSA_API) + install(FILES ${INTERFACE_SRC_DIR}/tfm_psa_ns_api.c + DESTINATION ${EXPORT_SRC_DIR}) + endif() endif() if (TFM_PARTITION_SECURE_STORAGE) |