hwinfo: Add dependency handling for HWINFO_NRF in nonsecure

The limitation on HWINFO_NRF depending on not nonsecure was removed in
52be3030aa.
This caused problems when TF-M was not enabled.

This happens on the thingy53_nrf5340_cpuapp_ns board since this board
is not supported by TF-M.

Introduce proper dependency handling for the soc secure functions
to make HWINFO_NRF unavailable when no secure services exist in
nonsecure.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
Joakim Andersson 2022-04-07 10:48:25 +02:00 committed by Anas Nashif
commit 2dae1823ab
2 changed files with 9 additions and 0 deletions

View file

@ -32,6 +32,7 @@ config HWINFO_NRF
bool "NRF device ID"
default y
depends on SOC_FAMILY_NRF
depends on NRF_SOC_SECURE_SUPPORTED
help
Enable Nordic NRF hwinfo driver.