diff options
Diffstat (limited to 'makefiles/toolchain_gnu-arm-eabi.mk')
-rw-r--r-- | makefiles/toolchain_gnu-arm-eabi.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/makefiles/toolchain_gnu-arm-eabi.mk b/makefiles/toolchain_gnu-arm-eabi.mk index d7e48f03b..2359a66b0 100644 --- a/makefiles/toolchain_gnu-arm-eabi.mk +++ b/makefiles/toolchain_gnu-arm-eabi.mk @@ -80,6 +80,8 @@ ARCHCPUFLAGS_CORTEXM3 = -mcpu=cortex-m3 \ -march=armv7-m \ -mfloat-abi=soft +ifeq ($(CONFIG_ARMV7M_STACKCHECK),y) + ARCHINSTRUMENTATIONDEFINES_CORTEXM4F = -finstrument-functions \ -ffixed-r10 @@ -88,6 +90,8 @@ ARCHINSTRUMENTATIONDEFINES_CORTEXM4 = -finstrument-functions \ ARCHINSTRUMENTATIONDEFINES_CORTEXM3 = +endif + # Pick the right set of flags for the architecture. # ARCHCPUFLAGS = $(ARCHCPUFLAGS_$(CONFIG_ARCH)) |