summaryrefslogtreecommitdiff
path: root/nuttx/configs/stm3210e-eval/ostest
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-10-27 17:18:20 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-10-27 17:18:20 +0000
commit2db8a6b1b8d2df454165894ea7327e5a8a541035 (patch)
treed9430ea4fbd3b2ea7713bf83c87beb24783e4471 /nuttx/configs/stm3210e-eval/ostest
parentc872296fe1f0c13bc9efb25d87fbcf38f4b1e0db (diff)
downloadpx4-nuttx-2db8a6b1b8d2df454165894ea7327e5a8a541035.tar.gz
px4-nuttx-2db8a6b1b8d2df454165894ea7327e5a8a541035.tar.bz2
px4-nuttx-2db8a6b1b8d2df454165894ea7327e5a8a541035.zip
CodeSourcery can't handle -Os
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2180 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/stm3210e-eval/ostest')
-rw-r--r--nuttx/configs/stm3210e-eval/ostest/Make.defs3
1 files changed, 2 insertions, 1 deletions
diff --git a/nuttx/configs/stm3210e-eval/ostest/Make.defs b/nuttx/configs/stm3210e-eval/ostest/Make.defs
index 2cec9a314..126664898 100644
--- a/nuttx/configs/stm3210e-eval/ostest/Make.defs
+++ b/nuttx/configs/stm3210e-eval/ostest/Make.defs
@@ -53,6 +53,7 @@ ifeq ($(CONFIG_STM32_CODESOURCERYL),y)
# CodeSourcery under Linux
CROSSDEV = arm-none-eabi-
ARCHCPUFLAGS = -mcpu=cortex-m3 -mthumb -mfloat-abi=soft
+ MAXOPTIMIZATION = -O2
endif
ifeq ($(CONFIG_STM32_DEVKITARM),y)
# devkitARM under Windows
@@ -70,6 +71,7 @@ ifeq ($(CONFIG_STM32_BUILDROOT),y)
# NuttX buildroot under Linux or Cygwin
CROSSDEV = arm-elf-
ARCHCPUFLAGS = -mtune=cortex-m3 -march=armv7-m -mfloat-abi=soft
+ MAXOPTIMIZATION = -Os
endif
ifeq ($(WINTOOL),y)
@@ -87,7 +89,6 @@ else
ARCHINCLUDES = -I. -isystem $(TOPDIR)/include
ARCHXXINCLUDES = -I. -isystem $(TOPDIR)/include -isystem $(TOPDIR)/include/cxx
ARCHSCRIPT = -T$(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/ostest/$(LDSCRIPT)
- MAXOPTIMIZATION = -Os
endif
CC = $(CROSSDEV)gcc