Skip to content

Commit

Permalink
nrf_security: tf-m: Move Kconfig default overides earlier
Browse files Browse the repository at this point in the history
Move Kconfig default overides earlier so they stay infront of
nrf_security.

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
  • Loading branch information
SebastianBoe authored and rlubos committed Jun 15, 2023
1 parent d64c4be commit bf5a42d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
13 changes: 13 additions & 0 deletions Kconfig.nrf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,19 @@ orsource "./$(BOARD_DIR)/Kconfig"
rsource "boards/shields/*/Kconfig.shield"
rsource "subsys/net/openthread/Kconfig.defconfig"

if !TFM_PROFILE_TYPE_MINIMAL
rsource "modules/trusted-firmware-m/Kconfig.mbedtls.defconfig"
endif # ! TFM_PROFILE_TYPE_MINIMAL

if TFM_PROFILE_TYPE_MINIMAL
rsource "modules/trusted-firmware-m/Kconfig.mbedtls_minimal.defconfig"
rsource "modules/trusted-firmware-m/Kconfig.tfm_minimal.defconfig"
endif # TFM_PROFILE_TYPE_MINIMAL

if BUILD_WITH_TFM
rsource "modules/trusted-firmware-m/Kconfig.psa.defconfig"
endif # BUILD_WITH_TFM

menu "Nordic nRF Connect"

# Override configuration from zephyr which sets this to 0x200 if MCUboot is
Expand Down
9 changes: 0 additions & 9 deletions modules/trusted-firmware-m/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -344,18 +344,11 @@ endif # BUILD_WITH_TFM
source "$(ZEPHYR_BASE)/modules/trusted-firmware-m/Kconfig.tfm"

if !TFM_PROFILE_TYPE_MINIMAL
rsource "Kconfig.mbedtls.defconfig"

# When enabling full TFM support, then partitions and crypto modules shall be available.
source "$(ZEPHYR_BASE)/modules/trusted-firmware-m/Kconfig.tfm.partitions"
source "$(ZEPHYR_BASE)/modules/trusted-firmware-m/Kconfig.tfm.crypto_modules"
endif

if TFM_PROFILE_TYPE_MINIMAL
rsource "Kconfig.mbedtls_minimal.defconfig"
rsource "Kconfig.tfm_minimal.defconfig"
endif # TFM_PROFILE_TYPE_MINIMAL

if BUILD_WITH_TFM

config PM_PARTITION_SIZE_TFM_SRAM
Expand Down Expand Up @@ -429,6 +422,4 @@ config TFM_NRF_PROVISIONING
provisioning lifecycle state in order to boot. See provisioning
guide for more details.

rsource "Kconfig.psa.defconfig"

endif # BUILD_WITH_TFM

0 comments on commit bf5a42d

Please sign in to comment.