diff options
author | Pavel Kirienko <pavel.kirienko@gmail.com> | 2015-01-18 16:09:46 +0300 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2015-01-21 14:54:24 +0100 |
commit | 2ebd7099de83c603b01bedd278c38a4eb6b77b2b (patch) | |
tree | c4a2dfc2bf9c9e065a8c4d280acb6baf1b8c0a3d /nuttx-configs/px4fmu-v2/nsh/Make.defs | |
parent | c9eae96cf67ebdf6d202dc7ecac55a5b4a670a50 (diff) | |
download | px4-firmware-2ebd7099de83c603b01bedd278c38a4eb6b77b2b.tar.gz px4-firmware-2ebd7099de83c603b01bedd278c38a4eb6b77b2b.tar.bz2 px4-firmware-2ebd7099de83c603b01bedd278c38a4eb6b77b2b.zip |
Globally configurable stack checks, R10 is always fixed
Diffstat (limited to 'nuttx-configs/px4fmu-v2/nsh/Make.defs')
-rw-r--r-- | nuttx-configs/px4fmu-v2/nsh/Make.defs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nuttx-configs/px4fmu-v2/nsh/Make.defs b/nuttx-configs/px4fmu-v2/nsh/Make.defs index 99f3b3140..798d58572 100644 --- a/nuttx-configs/px4fmu-v2/nsh/Make.defs +++ b/nuttx-configs/px4fmu-v2/nsh/Make.defs @@ -62,8 +62,14 @@ ARCHCPUFLAGS = -mcpu=cortex-m4 \ # enable precise stack overflow tracking +ENABLE_STACK_CHECKS ?= 0 +ifneq ($(ENABLE_STACK_CHECKS),0) +$(info Stack checks enabled) INSTRUMENTATIONDEFINES = -finstrument-functions \ -ffixed-r10 +else +INSTRUMENTATIONDEFINES = -ffixed-r10 +endif # pull in *just* libm from the toolchain ... this is grody LIBM = "${shell $(CC) $(ARCHCPUFLAGS) -print-file-name=libm.a}" |