Jianliang Shen | 948204f | 2023-08-08 14:59:42 +0800 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
| 2 | # Copyright (c) 2023, Arm Limited. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | #------------------------------------------------------------------------------- |
| 7 | |
| 8 | set(CONFIG_TFM_ENALBE_PROFILING OFF CACHE BOOL "Enable profiling for TF-M") |
| 9 | |
| 10 | if(CONFIG_TFM_ENALBE_PROFILING) |
| 11 | # Profiler source can be found from downloaded or local tf-m-tools repo. |
| 12 | if(NOT TFM_PROFILING_PATH) |
| 13 | if (NOT TFM_TOOLS_PATH) |
| 14 | add_subdirectory(${CMAKE_SOURCE_DIR}/lib/ext/tf-m-tools) |
| 15 | endif() |
| 16 | |
| 17 | set(TFM_PROFILING_PATH "${TFM_TOOLS_PATH}/profiling" CACHE PATH "Profiler tool source path") |
| 18 | endif() |
| 19 | |
| 20 | include(${TFM_PROFILING_PATH}/profiling_cases/config.cmake) |
| 21 | endif() |