mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-05 03:31:35 +08:00
Globally configurable stack checks, R10 is always fixed
This commit is contained in:
committed by
Lorenz Meier
parent
c9eae96cf6
commit
2ebd7099de
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user