diff options
author | David Sidrane <david_s5@nscdg.com> | 2015-01-20 17:36:55 -1000 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2015-01-21 14:54:24 +0100 |
commit | 4b8feb03cfca89b18ca88a19079e796b44f6d216 (patch) | |
tree | 5d0f26224a018e313f160537d7207491e2b4fe6f /nuttx-configs/px4fmu-v2/nsh/Make.defs | |
parent | f6dc2af3986ba823822525d9865c101d91aa67c3 (diff) | |
download | px4-firmware-4b8feb03cfca89b18ca88a19079e796b44f6d216.tar.gz px4-firmware-4b8feb03cfca89b18ca88a19079e796b44f6d216.tar.bz2 px4-firmware-4b8feb03cfca89b18ca88a19079e796b44f6d216.zip |
Match the OS build's CONFIG_ARMV7M_STACKCHECK setting by using actual setting in the exported nuttx config.h file to control each board build setting of ENABLE_STACK_CHECKS in toolchain_gnu-arm-eabi.mk
Diffstat (limited to 'nuttx-configs/px4fmu-v2/nsh/Make.defs')
-rwxr-xr-x[-rw-r--r--] | nuttx-configs/px4fmu-v2/nsh/Make.defs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/nuttx-configs/px4fmu-v2/nsh/Make.defs b/nuttx-configs/px4fmu-v2/nsh/Make.defs index b2f05293d..5a1d5af2c 100644..100755 --- a/nuttx-configs/px4fmu-v2/nsh/Make.defs +++ b/nuttx-configs/px4fmu-v2/nsh/Make.defs @@ -62,13 +62,8 @@ 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 = +ifeq ($(CONFIG_ARMV7M_STACKCHECK),y) +INSTRUMENTATIONDEFINES = -finstrument-functions -ffixed-r10 endif # pull in *just* libm from the toolchain ... this is grody |