diff --git a/arch/arm/src/armv7-m/Kconfig b/arch/arm/src/armv7-m/Kconfig index fab715a3787..6c30814d3f6 100644 --- a/arch/arm/src/armv7-m/Kconfig +++ b/arch/arm/src/armv7-m/Kconfig @@ -183,7 +183,7 @@ config ARMV7M_TARGET2_PREL bool "R_ARM_TARGET2 is PC relative" default n if !CXX_EXCEPTION default y if CXX_EXCEPTION - depends on ELF + depends on LIBC_ARCH_ELF ---help--- Perform a PC relative relocation for relocation type R_ARM_TARGET2 diff --git a/arch/arm/src/armv8-m/Kconfig b/arch/arm/src/armv8-m/Kconfig index 5339c752abd..dfe745b9dee 100644 --- a/arch/arm/src/armv8-m/Kconfig +++ b/arch/arm/src/armv8-m/Kconfig @@ -153,7 +153,7 @@ config ARMV8M_TARGET2_PREL bool "R_ARM_TARGET2 is PC relative" default n if !CXX_EXCEPTION default y if CXX_EXCEPTION - depends on ELF + depends on LIBC_ARCH_ELF ---help--- Perform a PC relative relocation for relocation type R_ARM_TARGET2 diff --git a/arch/arm/src/stm32/Kconfig b/arch/arm/src/stm32/Kconfig index 00e5d3bfbd7..d9187263252 100644 --- a/arch/arm/src/stm32/Kconfig +++ b/arch/arm/src/stm32/Kconfig @@ -3381,7 +3381,7 @@ config STM32_I2SPLL config STM32_CCMEXCLUDE bool "Exclude CCM SRAM from the heap" - default y if ARCH_DMA || ELF + default y if ARCH_DMA || LIBC_ARCH_ELF depends on STM32_HAVE_CCM ---help--- Exclude CCM SRAM from the HEAP because (1) it cannot be used for DMA diff --git a/arch/arm/src/stm32f7/Kconfig b/arch/arm/src/stm32f7/Kconfig index 1e3589c3ea2..bb680d2e02e 100644 --- a/arch/arm/src/stm32f7/Kconfig +++ b/arch/arm/src/stm32f7/Kconfig @@ -2609,7 +2609,7 @@ config STM32F7_CUSTOM_CLOCKCONFIG config STM32F7_DTCMEXCLUDE bool "Exclude DTCM SRAM from the heap" - default y if ELF + default y if LIBC_ARCH_ELF depends on ARMV7M_HAVE_DTCM ---help--- Exclude DTCM SRAM from the HEAP because it appears to be impossible diff --git a/arch/arm/src/stm32h7/Kconfig b/arch/arm/src/stm32h7/Kconfig index eba848de615..ee025a32dfd 100644 --- a/arch/arm/src/stm32h7/Kconfig +++ b/arch/arm/src/stm32h7/Kconfig @@ -1653,7 +1653,7 @@ config STM32H7_CUSTOM_CLOCKCONFIG config STM32H7_DTCMEXCLUDE bool "Exclude DTCM SRAM from the heap" - default y if ELF + default y if LIBC_ARCH_ELF depends on ARMV7M_HAVE_DTCM ---help--- Exclude DTCM SRAM from the HEAP because it appears to be impossible diff --git a/boards/arm/stm32/olimex-stm32-p407/configs/kmodule/defconfig b/boards/arm/stm32/olimex-stm32-p407/configs/kmodule/defconfig index 121422de3b0..18c74f343a3 100644 --- a/boards/arm/stm32/olimex-stm32-p407/configs/kmodule/defconfig +++ b/boards/arm/stm32/olimex-stm32-p407/configs/kmodule/defconfig @@ -49,7 +49,6 @@ CONFIG_SCHED_WAITPID=y CONFIG_SDCLONE_DISABLE=y CONFIG_START_DAY=5 CONFIG_START_MONTH=8 -CONFIG_STM32_CCMEXCLUDE=y CONFIG_STM32_DISABLE_IDLE_SLEEP_DURING_DEBUG=y CONFIG_STM32_JTAG_SW_ENABLE=y CONFIG_STM32_OTGFS=y diff --git a/boards/arm/stm32/olimex-stm32-p407/configs/module/defconfig b/boards/arm/stm32/olimex-stm32-p407/configs/module/defconfig index bb2d40869cf..303810900b7 100644 --- a/boards/arm/stm32/olimex-stm32-p407/configs/module/defconfig +++ b/boards/arm/stm32/olimex-stm32-p407/configs/module/defconfig @@ -46,7 +46,6 @@ CONFIG_SCHED_HPWORK=y CONFIG_SCHED_WAITPID=y CONFIG_SDCLONE_DISABLE=y CONFIG_START_MONTH=6 -CONFIG_STM32_CCMEXCLUDE=y CONFIG_STM32_DISABLE_IDLE_SLEEP_DURING_DEBUG=y CONFIG_STM32_JTAG_SW_ENABLE=y CONFIG_STM32_PWR=y diff --git a/boards/arm/stm32/stm32f4discovery/configs/module/defconfig b/boards/arm/stm32/stm32f4discovery/configs/module/defconfig index 60464bb368f..924d826d8fa 100644 --- a/boards/arm/stm32/stm32f4discovery/configs/module/defconfig +++ b/boards/arm/stm32/stm32f4discovery/configs/module/defconfig @@ -48,7 +48,6 @@ CONFIG_SDCLONE_DISABLE=y CONFIG_START_DAY=6 CONFIG_START_MONTH=12 CONFIG_START_YEAR=2011 -CONFIG_STM32_CCMEXCLUDE=y CONFIG_STM32_JTAG_SW_ENABLE=y CONFIG_STM32_PWR=y CONFIG_STM32_SPI1=y