blob: 6ff0b1b038634ca97e188ce0e51df51490a63269 [file] [log] [blame]
Jianliang Shen948204f2023-08-08 14:59:42 +08001#-------------------------------------------------------------------------------
2# Copyright (c) 2023, Arm Limited. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
7
8set(CONFIG_TFM_ENALBE_PROFILING OFF CACHE BOOL "Enable profiling for TF-M")
9
10if(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)
21endif()