Browse Source

soc: stm32: Set default on USE_DT_CODE_PARTITION

Rather than configuring USE_DT_CODE_PARTITION in all ns targets,
do it conditionally as part of SoC description.

This allows cleaning up some BOARD dedicated symbols that are now
useless.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
pull/69687/head
Erwan Gouriou 1 year ago committed by Jamie McCrae
parent
commit
400343d17e
  1. 4
      boards/boards_legacy/arm/b_u585i_iot02a/Kconfig.defconfig
  2. 16
      boards/st/nucleo_l552ze_q/Kconfig.defconfig
  3. 4
      boards/st/nucleo_l552ze_q/Kconfig.nucleo_l552ze_q
  4. 12
      boards/st/stm32l562e_dk/Kconfig.defconfig
  5. 4
      boards/st/stm32l562e_dk/Kconfig.stm32l562e_dk
  6. 4
      soc/st/stm32/Kconfig.defconfig

4
boards/boards_legacy/arm/b_u585i_iot02a/Kconfig.defconfig

@ -12,10 +12,6 @@ config SPI_STM32_INTERRUPT @@ -12,10 +12,6 @@ config SPI_STM32_INTERRUPT
default y
depends on SPI
# Get flash configuration for NS image from dts flash partition
config USE_DT_CODE_PARTITION
default y if TRUSTED_EXECUTION_NONSECURE
if BUILD_WITH_TFM
# Initial Attestation key provisioned by the BL1 bootloader

16
boards/st/nucleo_l552ze_q/Kconfig.defconfig

@ -1,16 +0,0 @@ @@ -1,16 +0,0 @@
# STM32L552ZE Q Nucleo board configuration
# Copyright (c) 2020 Linaro Limited
# SPDX-License-Identifier: Apache-2.0
if BOARD_NUCLEO_L552ZE_Q_STM32L552XX_NS
if TRUSTED_EXECUTION_NONSECURE
# Get flash configuration for NS image from dts flash partition
config USE_DT_CODE_PARTITION
default y
endif # TRUSTED_EXECUTION_NONSECURE
endif # BOARD_NUCLEO_L552ZE_Q_STM32L552XX_NS

4
boards/st/nucleo_l552ze_q/Kconfig.nucleo_l552ze_q

@ -3,7 +3,3 @@ @@ -3,7 +3,3 @@
config BOARD_NUCLEO_L552ZE_Q
select SOC_STM32L552XX
config BOARD_NUCLEO_L552ZE_Q_STM32L552XX_NS
bool
select SOC_STM32L552XX

12
boards/st/stm32l562e_dk/Kconfig.defconfig

@ -27,15 +27,3 @@ config BT_HCI_VS_EXT @@ -27,15 +27,3 @@ config BT_HCI_VS_EXT
endif # BT
endif # BOARD_STM32L562E_DK
if BOARD_STM32L562E_DK_STM32L562XX_NS
if TRUSTED_EXECUTION_NONSECURE
# Get flash configuration for NS image from dts flash partition
config USE_DT_CODE_PARTITION
default y
endif # TRUSTED_EXECUTION_NONSECURE
endif # BOARD_STM32L562E_DK_STM32L562XX_NS

4
boards/st/stm32l562e_dk/Kconfig.stm32l562e_dk

@ -3,7 +3,3 @@ @@ -3,7 +3,3 @@
config BOARD_STM32L562E_DK
select SOC_STM32L562XX
config BOARD_STM32L562E_DK_STM32L562XX_NS
bool
select SOC_STM32L562XX

4
soc/st/stm32/Kconfig.defconfig

@ -56,4 +56,8 @@ config MEMC_STM32 @@ -56,4 +56,8 @@ config MEMC_STM32
default y
depends on MEMC
# Get flash configuration for NS image from dts flash partition
config USE_DT_CODE_PARTITION
default y if TRUSTED_EXECUTION_NONSECURE
endif # SOC_FAMILY_STM32

Loading…
Cancel
Save