modules: trusted-firmware-m: fix dependencies for isolation level

Do not allow the TFM_ISOLATION_LEVEL to be non-hidden option,
if the TFM_IPC (PSA_API) option is not set, since, in that case,
only Isolation Level 1 is supported.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
Ioannis Glaropoulos 2021-04-13 12:08:18 +02:00
parent 81b0bdfa99
commit e75ff8f7fb

View File

@ -120,10 +120,10 @@ config TFM_CMAKE_BUILD_TYPE_DEBUG
endchoice
config TFM_ISOLATION_LEVEL
int "Isolation level setting." if TFM_PROFILE_TYPE_NOT_SET
int "Isolation level setting." if (TFM_PROFILE_TYPE_NOT_SET && TFM_IPC)
range 1 3
depends on BUILD_WITH_TFM
default 1 if TFM_PROFILE_TYPE_SMALL
default 1 if TFM_PROFILE_TYPE_SMALL || !TFM_IPC
default 2 if TFM_PROFILE_TYPE_MEDIUM
default 3 if TFM_PROFILE_TYPE_LARGE
help
@ -131,6 +131,8 @@ config TFM_ISOLATION_LEVEL
1,2 or 3; the default is set by build configuration. When TF-M
Profile option is supplied, do not allow manual setting of the
isolation level, as it is determined by the profile setting.
As isolation levels 2 and 3 require PSA_API (TFM_IPC) support,
force level 1 when TFM_IPC is not enabled.
config TFM_BL2
bool "Add MCUboot to TFM"