From 2f30aaaf0676b533a520094e29c626d59a75f850 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Thu, 25 Jun 2020 13:14:59 +0200 Subject: [PATCH] cpu/cortexm_common: use mpu stack guard if DEVELHELP is enabled --- cpu/cortexm_common/Makefile.dep | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cpu/cortexm_common/Makefile.dep b/cpu/cortexm_common/Makefile.dep index 3b3c0bc9fe..472b903407 100644 --- a/cpu/cortexm_common/Makefile.dep +++ b/cpu/cortexm_common/Makefile.dep @@ -18,3 +18,8 @@ FEATURES_OPTIONAL += cortexm_fpu ifneq (,$(filter cortexm_fpu,$(FEATURES_USED))) DEFAULT_MODULE += cortexm_fpu endif + +# Enable the MPU stack guard if develhelp is enabled +ifeq (1, $(DEVELHELP)) + FEATURES_OPTIONAL += cortexm_mpu +endif