tfm: Add config to disable all TF-M output
Add config to disable all TF-M output. This configuration is needed in order to exclude the UART driver through a select in Kconfig when either the code size optimization or the UART instance requires it. Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
parent
058e217401
commit
bfbee8c54f
|
@ -99,7 +99,7 @@ if (CONFIG_BUILD_WITH_TFM)
|
|||
set(TFM_PARTITION_LOG_LEVEL "TFM_PARTITION_LOG_LEVEL_INFO")
|
||||
elseif (CONFIG_TFM_PARTITION_LOG_LEVEL_ERROR)
|
||||
set(TFM_PARTITION_LOG_LEVEL "TFM_PARTITION_LOG_LEVEL_ERROR")
|
||||
elseif (CONFIG_TFM_PARTITION_LOG_LEVEL_SILENCE)
|
||||
elseif (CONFIG_TFM_PARTITION_LOG_LEVEL_SILENCE OR CONFIG_TFM_LOG_LEVEL_SILENCE)
|
||||
set(TFM_PARTITION_LOG_LEVEL "TFM_PARTITION_LOG_LEVEL_SILENCE")
|
||||
endif()
|
||||
|
||||
|
@ -113,7 +113,7 @@ if (CONFIG_BUILD_WITH_TFM)
|
|||
set(TFM_SPM_LOG_LEVEL "TFM_SPM_LOG_LEVEL_INFO")
|
||||
elseif (CONFIG_TFM_SPM_LOG_LEVEL_ERROR)
|
||||
set(TFM_SPM_LOG_LEVEL "TFM_SPM_LOG_LEVEL_ERROR")
|
||||
elseif (CONFIG_TFM_SPM_LOG_LEVEL_SILENCE)
|
||||
elseif (CONFIG_TFM_SPM_LOG_LEVEL_SILENCE OR CONFIG_TFM_LOG_LEVEL_SILENCE)
|
||||
set(TFM_SPM_LOG_LEVEL "TFM_SPM_LOG_LEVEL_SILENCE")
|
||||
endif()
|
||||
|
||||
|
|
|
@ -294,8 +294,15 @@ config TFM_FLASH_MERGED_BINARY
|
|||
(if building with TFM_BL2 is enabled), and the
|
||||
Non-Secure application firmware.
|
||||
|
||||
config TFM_LOG_LEVEL_SILENCE
|
||||
bool "TF-M Disable secure logging"
|
||||
help
|
||||
Set the log level to silence for all TF-M modules (SPM, partition, etc.).
|
||||
On some platforms this will release the UART from
|
||||
the secure domain and reduce the uart driver's flash usage.
|
||||
|
||||
choice TFM_SPM_LOG_LEVEL
|
||||
prompt "TF-M SPM Log Level"
|
||||
prompt "TF-M SPM Log Level" if !TFM_LOG_LEVEL_SILENCE
|
||||
default TFM_SPM_LOG_LEVEL_INFO
|
||||
config TFM_SPM_LOG_LEVEL_DEBUG
|
||||
bool "Debug"
|
||||
|
|
|
@ -75,7 +75,7 @@ config TFM_PARTITION_AUDIT_LOG
|
|||
interface so it may not be enabled together with IPC option.
|
||||
|
||||
choice TFM_PARTITION_LOG_LEVEL
|
||||
prompt "TF-M Partition Log Level"
|
||||
prompt "TF-M Partition Log Level" if !TFM_LOG_LEVEL_SILENCE
|
||||
default TFM_PARTITION_LOG_LEVEL_INFO
|
||||
config TFM_PARTITION_LOG_LEVEL_DEBUG
|
||||
bool "Debug"
|
||||
|
|
Loading…
Reference in a new issue