All configuration options are provided by cmake variables, and their default
values, with docstrings, can be found in
Configuration is provided in multiple stages. Each stage will not override any config that has already been set at any of the prior stages.
Command-line variable settings are applied.
TFM_EXTRA_CONFIG_PATHvariable has been set, that file is loaded.
If TEST_PSA_TEST is set, then PSA API test related config is applied from
If it exists, CMAKE_BUILD_TYPE specific config is applied from
Target specific config from
If CRYPTO_HW_ACCELERATOR is set, then a config specific to the accelerator type is applied if it exists.
If it exists, TFM Profile specific config is applied from
TEST_NSor other single test suite config like
TEST_NS_ATTESTATION(see Tests configuration) is set, then config from
This means that command-line settings are not applied when they conflict with required platform settings. If it is required to override platform settings (this is not usually a good idea) then TFM_EXTRA_CONFIG_PATH should be used.