Skip to content
Snippets Groups Projects
Commit 1b6e9331 authored by David Sidrane's avatar David Sidrane
Browse files

Make.defs.in:Runtime Stack Checking in Nuttx Build

  Use CONFIG_ARMV7M_STACKCHECK to add the instrumentation
  for runtime stack checking
parent 4f2aa517
No related branches found
No related tags found
No related merge requests found
......@@ -64,7 +64,12 @@ ifeq ($(WINTOOL),y)
MKDEP = $(TOPDIR)/tools/mknulldeps.sh
endif
CFLAGS = -Os -g2 ${CMAKE_C_FLAGS} $(ARCHINCLUDES) \
# enable precise stack overflow tracking
ifeq ($(CONFIG_ARMV7M_STACKCHECK),y)
INSTRUMENTATIONDEFINES = -finstrument-functions -ffixed-r10
endif
CFLAGS = -Os -g2 ${CMAKE_C_FLAGS} $(ARCHINCLUDES) $(INSTRUMENTATIONDEFINES) \
-Wno-bad-function-cast \
-Wno-cpp \
-Wno-float-equal \
......@@ -82,7 +87,7 @@ CFLAGS = -Os -g2 ${CMAKE_C_FLAGS} $(ARCHINCLUDES) \
-Wno-sign-compare \
-Wno-type-limits
CXXFLAGS = -Os -g2 ${CMAKE_CXX_FLAGS} $(ARCHXXINCLUDES) \
CXXFLAGS = -Os -g2 ${CMAKE_CXX_FLAGS} $(ARCHXXINCLUDES) $(INSTRUMENTATIONDEFINES) \
-fcheck-new \
-fno-builtin \
-Wno-double-promotion \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment