This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new e837b26518 boards/esp32s2: add -fno-omit-frame-pointer to saola board
e837b26518 is described below
commit e837b26518a51a69ecaf31a20a7644f585731526
Author: Filipe Cavalcanti <filipe.cavalca...@espressif.com>
AuthorDate: Fri Apr 25 16:37:59 2025 -0300
boards/esp32s2: add -fno-omit-frame-pointer to saola board
This change affects esp32s2-saola-1 board when optimizations are enabled.
Fixes issue on timer defconfig.
Signed-off-by: Filipe Cavalcanti <filipe.cavalca...@espressif.com>
---
boards/xtensa/esp32s2/esp32s2-saola-1/scripts/Make.defs | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/boards/xtensa/esp32s2/esp32s2-saola-1/scripts/Make.defs
b/boards/xtensa/esp32s2/esp32s2-saola-1/scripts/Make.defs
index 414b2e74e5..c60872364c 100644
--- a/boards/xtensa/esp32s2/esp32s2-saola-1/scripts/Make.defs
+++ b/boards/xtensa/esp32s2/esp32s2-saola-1/scripts/Make.defs
@@ -36,6 +36,10 @@ ARCHSCRIPT += $(call FINDSCRIPT,esp32s2_sections.ld)
ARCHPICFLAGS = -fpic
+ifeq ($(CONFIG_DEBUG_FULLOPT),y)
+ ARCHOPTIMIZATION += -fno-omit-frame-pointer
+endif
+
CFLAGS := $(ARCHCFLAGS) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(ARCHINCLUDES)
$(ARCHDEFINES) $(EXTRAFLAGS)
CPICFLAGS = $(ARCHPICFLAGS) $(CFLAGS)
CXXFLAGS := $(ARCHCXXFLAGS) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS)
$(ARCHXXINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS)