summaryrefslogtreecommitdiff
path: root/nuttx/configs/stm32f3discovery
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/stm32f3discovery
parentdfea55cdfbbe46972be0ccc9eed2c5402c96ca22 (diff)
downloadpx4-nuttx-a94cda2860f4ea87f254966f71307e928ffe9bcb.tar.gz
px4-nuttx-a94cda2860f4ea87f254966f71307e928ffe9bcb.tar.bz2
px4-nuttx-a94cda2860f4ea87f254966f71307e928ffe9bcb.zip
Finishes separation of debug symbols and optimization selections
Diffstat (limited to 'nuttx/configs/stm32f3discovery')
-rw-r--r--nuttx/configs/stm32f3discovery/nsh/Make.defs6
-rw-r--r--nuttx/configs/stm32f3discovery/ostest/Make.defs6
-rw-r--r--nuttx/configs/stm32f3discovery/usbnsh/Make.defs6
3 files changed, 12 insertions, 6 deletions
diff --git a/nuttx/configs/stm32f3discovery/nsh/Make.defs b/nuttx/configs/stm32f3discovery/nsh/Make.defs
index 2987bb200..045926d3f 100644
--- a/nuttx/configs/stm32f3discovery/nsh/Make.defs
+++ b/nuttx/configs/stm32f3discovery/nsh/Make.defs
@@ -70,8 +70,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/stm32f3discovery/ostest/Make.defs b/nuttx/configs/stm32f3discovery/ostest/Make.defs
index fe4c86d90..db9b4b028 100644
--- a/nuttx/configs/stm32f3discovery/ostest/Make.defs
+++ b/nuttx/configs/stm32f3discovery/ostest/Make.defs
@@ -66,8 +66,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/stm32f3discovery/usbnsh/Make.defs b/nuttx/configs/stm32f3discovery/usbnsh/Make.defs
index 367162aca..2669947fe 100644
--- a/nuttx/configs/stm32f3discovery/usbnsh/Make.defs
+++ b/nuttx/configs/stm32f3discovery/usbnsh/Make.defs
@@ -70,8 +70,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