summaryrefslogtreecommitdiff
path: root/nuttx/configs/z16f2800100zcog/pashello
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-12-20 11:43:02 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-12-20 11:43:02 -0600
commit9ed483d790a43b1ba5cf038c92eb27bcfb57df23 (patch)
tree8fb21d7daaf8bc65da9289e381a0b13db7640eae /nuttx/configs/z16f2800100zcog/pashello
parent03b760d4d8c697580e7d1614a3bfd219f34224ca (diff)
downloadpx4-nuttx-9ed483d790a43b1ba5cf038c92eb27bcfb57df23.tar.gz
px4-nuttx-9ed483d790a43b1ba5cf038c92eb27bcfb57df23.tar.bz2
px4-nuttx-9ed483d790a43b1ba5cf038c92eb27bcfb57df23.zip
Beginning separation of debug symbols and optimization selections
Diffstat (limited to 'nuttx/configs/z16f2800100zcog/pashello')
-rw-r--r--nuttx/configs/z16f2800100zcog/pashello/Make.defs10
1 files changed, 8 insertions, 2 deletions
diff --git a/nuttx/configs/z16f2800100zcog/pashello/Make.defs b/nuttx/configs/z16f2800100zcog/pashello/Make.defs
index 3a2945c07..ed9153643 100644
--- a/nuttx/configs/z16f2800100zcog/pashello/Make.defs
+++ b/nuttx/configs/z16f2800100zcog/pashello/Make.defs
@@ -112,9 +112,15 @@ AFLAGS = $(ARCHASMCPUFLAGS) $(ARCHASMINCLUDES) $(ARCHASMLIST) $(ARCHASMWARNINGS)
# Compiler definitions
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
- ARCHOPTIMIZATION = -debug -NOregvar -reduceopt
+ ARCHOPTIMIZATION = -debug
else
- ARCHOPTIMIZATION = -nodebug -regvar
+ ARCHOPTIMIZATION = -nodebug
+endif
+
+ifeq ($(CONFIG_DEBUG_NOOPT),y)
+ ARCHOPTIMIZATION += -NOregvar -reduceopt
+else
+ ARCHOPTIMIZATION += -regvar
endif
ARCHCPUFLAGS = -chartype:S -model:L -NOmodsect -cpu:Z16F2811AL -NOgenprint \