summaryrefslogtreecommitdiff
path: root/nuttx/configs/olimex-stm32-p107
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-12-20 13:23:42 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-12-20 13:23:42 -0600
commita94cda2860f4ea87f254966f71307e928ffe9bcb (patch)
treeb29057af9d4225d96e8d3b661be773a63f596ea2 /nuttx/configs/olimex-stm32-p107
parentdfea55cdfbbe46972be0ccc9eed2c5402c96ca22 (diff)
downloadnuttx-a94cda2860f4ea87f254966f71307e928ffe9bcb.tar.gz
nuttx-a94cda2860f4ea87f254966f71307e928ffe9bcb.tar.bz2
nuttx-a94cda2860f4ea87f254966f71307e928ffe9bcb.zip
Finishes separation of debug symbols and optimization selections
Diffstat (limited to 'nuttx/configs/olimex-stm32-p107')
-rw-r--r--nuttx/configs/olimex-stm32-p107/nsh/Make.defs6
-rw-r--r--nuttx/configs/olimex-stm32-p107/ostest/Make.defs6
2 files changed, 8 insertions, 4 deletions
diff --git a/nuttx/configs/olimex-stm32-p107/nsh/Make.defs b/nuttx/configs/olimex-stm32-p107/nsh/Make.defs
index 968177254..dd75978e4 100644
--- a/nuttx/configs/olimex-stm32-p107/nsh/Make.defs
+++ b/nuttx/configs/olimex-stm32-p107/nsh/Make.defs
@@ -74,8 +74,10 @@ ARCHCCMAJOR = ${shell echo $(ARCHCCVERSION) | cut -d'.' -f1}
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
ARCHOPTIMIZATION = -g
-else
- ARCHOPTIMIZATION = $(MAXOPTIMIZATION) -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer
+endif
+
+ifneq ($(CONFIG_DEBUG_NOOPT),y)
+ ARCHOPTIMIZATION += $(MAXOPTIMIZATION) -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer
endif
ARCHCFLAGS = -fno-builtin
diff --git a/nuttx/configs/olimex-stm32-p107/ostest/Make.defs b/nuttx/configs/olimex-stm32-p107/ostest/Make.defs
index 174878c7a..e02708428 100644
--- a/nuttx/configs/olimex-stm32-p107/ostest/Make.defs
+++ b/nuttx/configs/olimex-stm32-p107/ostest/Make.defs
@@ -74,8 +74,10 @@ ARCHCCMAJOR = ${shell echo $(ARCHCCVERSION) | cut -d'.' -f1}
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
ARCHOPTIMIZATION = -g
-else
- ARCHOPTIMIZATION = $(MAXOPTIMIZATION) -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer
+endif
+
+ifneq ($(CONFIG_DEBUG_NOOPT),y)
+ ARCHOPTIMIZATION += $(MAXOPTIMIZATION) -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer
endif
ARCHCFLAGS = -fno-builtin