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>
This commit is contained in:
parent
d783ef549a
commit
400343d17e
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -3,7 +3,3 @@
|
|||
|
||||
config BOARD_NUCLEO_L552ZE_Q
|
||||
select SOC_STM32L552XX
|
||||
|
||||
config BOARD_NUCLEO_L552ZE_Q_STM32L552XX_NS
|
||||
bool
|
||||
select SOC_STM32L552XX
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -3,7 +3,3 @@
|
|||
|
||||
config BOARD_STM32L562E_DK
|
||||
select SOC_STM32L562XX
|
||||
|
||||
config BOARD_STM32L562E_DK_STM32L562XX_NS
|
||||
bool
|
||||
select SOC_STM32L562XX
|
||||
|
|
|
@ -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…
Reference in New Issue