diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-12-20 12:36:02 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-12-20 12:36:02 -0600 |
commit | dfea55cdfbbe46972be0ccc9eed2c5402c96ca22 (patch) | |
tree | 7675f3efa2f2e8c99d338f1f809edc2bef0db2bc /nuttx/configs/mx1ads/ostest/Make.defs | |
parent | b80eaf7a0505b5f2e4d434edee324f03cdeae416 (diff) | |
download | px4-nuttx-dfea55cdfbbe46972be0ccc9eed2c5402c96ca22.tar.gz px4-nuttx-dfea55cdfbbe46972be0ccc9eed2c5402c96ca22.tar.bz2 px4-nuttx-dfea55cdfbbe46972be0ccc9eed2c5402c96ca22.zip |
More separation of debug symbols and optimization selections
Diffstat (limited to 'nuttx/configs/mx1ads/ostest/Make.defs')
-rw-r--r-- | nuttx/configs/mx1ads/ostest/Make.defs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/nuttx/configs/mx1ads/ostest/Make.defs b/nuttx/configs/mx1ads/ostest/Make.defs index 0e261775f..ca18e4009 100644 --- a/nuttx/configs/mx1ads/ostest/Make.defs +++ b/nuttx/configs/mx1ads/ostest/Make.defs @@ -35,6 +35,7 @@ include ${TOPDIR}/.config include ${TOPDIR}/tools/Config.mk +include ${TOPDIR}/arch/arm/src/arm/Toolchain.defs CROSSDEV = arm-nuttx-elf- CC = $(CROSSDEV)gcc @@ -56,9 +57,10 @@ ARCHWARNINGSXX = -Wall -Wshadow ifeq ($(CONFIG_DEBUG_SYMBOLS),y) ARCHOPTIMIZATION = -g -else - ARCHOPTIMIZATION = -Os -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 ifeq ($(ARCHCCMAJOR),4) |