1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/cortexm: Use DEVELHELP to add stack guard

This commit is contained in:
MrKevinWeiss 2021-08-10 11:37:46 +02:00
parent 73e32207df
commit 636c6c4cdb
No known key found for this signature in database
GPG Key ID: 3514539D7808D123
3 changed files with 23 additions and 1 deletions

View File

@ -50,3 +50,10 @@ config TEST_KCONFIG
This is used during the Kconfig migration to test the module dependency
modelling. Don't change the default value unless you know what you are
doing.
config DEVELHELP
bool "Development Help"
help
Set to enable code in RIOT that does safety checking which might not be
needed in a production environment but helps in the development
process.

View File

@ -124,10 +124,20 @@ config HAS_CORTEXM_SVC
help
Indicates that ARM Cortex-M Supervisor Calls are available.
menu "Cortex-M"
depends on TEST_KCONFIG
depends on CPU_CORE_CORTEX_M
config MODULE_CORTEXM_FPU
bool "Cortex-M Floating Point Unit (FPU) support"
default y
depends on HAS_CORTEXM_FPU
depends on TEST_KCONFIG
config MODULE_MPU_STACK_GUARD
bool "Memory Protection Unit (MPU) stack guard"
default y if DEVELHELP
depends on HAS_CORTEXM_MPU
endmenu # Cortex-M
rsource "periph/Kconfig"

View File

@ -112,6 +112,11 @@ ifeq (1,$(TEST_KCONFIG))
SHOULD_RUN_KCONFIG := 1
endif
# Expose DEVELHELP to kconfig
ifeq (1,$(DEVELHELP))
RIOT_CONFIG_DEVELHELP ?= y
endif
# export variable to make it visible in other Makefiles
export SHOULD_RUN_KCONFIG