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/avr32dev1 | |
parent | b80eaf7a0505b5f2e4d434edee324f03cdeae416 (diff) | |
download | nuttx-dfea55cdfbbe46972be0ccc9eed2c5402c96ca22.tar.gz nuttx-dfea55cdfbbe46972be0ccc9eed2c5402c96ca22.tar.bz2 nuttx-dfea55cdfbbe46972be0ccc9eed2c5402c96ca22.zip |
More separation of debug symbols and optimization selections
Diffstat (limited to 'nuttx/configs/avr32dev1')
-rw-r--r-- | nuttx/configs/avr32dev1/nsh/Make.defs | 8 | ||||
-rw-r--r-- | nuttx/configs/avr32dev1/ostest/Make.defs | 9 |
2 files changed, 11 insertions, 6 deletions
diff --git a/nuttx/configs/avr32dev1/nsh/Make.defs b/nuttx/configs/avr32dev1/nsh/Make.defs index 85705a297..57a488187 100644 --- a/nuttx/configs/avr32dev1/nsh/Make.defs +++ b/nuttx/configs/avr32dev1/nsh/Make.defs @@ -66,9 +66,11 @@ ARCHCCVERSION = ${shell $(CC) -v 2>&1 | sed -n '/^gcc version/p' | sed -e 's/^gc ARCHCCMAJOR = ${shell echo $(ARCHCCVERSION) | cut -d'.' -f1} ifeq ($(CONFIG_DEBUG_SYMBOLS),y) - ARCHOPTIMIZATION = -g -else - ARCHOPTIMIZATION = -Os -ffunction-sections -fdata-sections -fno-strict-aliasing + ARCHOPTIMIZATION = -g +endif + +ifneq ($(CONFIG_DEBUG_NOOPT),y) + ARCHOPTIMIZATION += -Os -ffunction-sections -fdata-sections -fno-strict-aliasing endif ARCHCFLAGS = -fno-builtin -muse-rodata-section diff --git a/nuttx/configs/avr32dev1/ostest/Make.defs b/nuttx/configs/avr32dev1/ostest/Make.defs index 8dc6b8f40..08e49ef8c 100644 --- a/nuttx/configs/avr32dev1/ostest/Make.defs +++ b/nuttx/configs/avr32dev1/ostest/Make.defs @@ -35,6 +35,7 @@ include ${TOPDIR}/.config include ${TOPDIR}/tools/Config.mk +include ${TOPDIR}/arch/avr/src/avr32/Toolchain.defs # Setup for the selected toolchain @@ -79,9 +80,11 @@ ARCHCCVERSION = ${shell $(CC) -v 2>&1 | sed -n '/^gcc version/p' | sed -e 's/^gc ARCHCCMAJOR = ${shell echo $(ARCHCCVERSION) | cut -d'.' -f1} ifeq ($(CONFIG_DEBUG_SYMBOLS),y) - ARCHOPTIMIZATION = -g -else - ARCHOPTIMIZATION = -Os -ffunction-sections -fdata-sections -fno-strict-aliasing + ARCHOPTIMIZATION = -g +endif + +ifneq ($(CONFIG_DEBUG_NOOPT),y) + ARCHOPTIMIZATION += -Os -ffunction-sections -fdata-sections -fno-strict-aliasing endif ARCHCFLAGS = -fno-builtin -muse-rodata-section |