1#------------------------------------------------------------------------------- 2# Copyright (c) 2021, Arm Limited. All rights reserved. 3# 4# SPDX-License-Identifier: BSD-3-Clause 5# 6#------------------------------------------------------------------------------- 7 8# Secure regression tests also require SP log function 9# Enable SP log raw dump when SP log level is higher than silence or TF-M 10# regression test is enabled. 11if ((NOT ${TFM_PARTITION_LOG_LEVEL} STREQUAL TFM_PARTITION_LOG_LEVEL_SILENCE) 12 OR TFM_S_REG_TEST OR TFM_NS_REG_TEST) 13 set(TFM_SP_LOG_RAW_ENABLED ON) 14endif() 15 16# SP log relies on SPM log. 17# Enable SPM log when SPM log level is higher than silence or SP log is active. 18if ((NOT ${TFM_SPM_LOG_LEVEL} STREQUAL TFM_SPM_LOG_LEVEL_SILENCE) 19 OR TFM_SP_LOG_RAW_ENABLED) 20 set(TFM_SPM_LOG_RAW_ENABLED ON) 21endif() 22