From f9304ed52bc8e74d04f97f7d662d862ad9e6cf2e Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 27 Oct 2009 17:18:20 +0000 Subject: [PATCH] CodeSourcery can't handle -Os git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2180 42af7a65-404d-4744-a932-0658087f49c3 --- configs/stm3210e-eval/RIDE/Make.defs | 3 ++- configs/stm3210e-eval/nsh/Make.defs | 3 ++- configs/stm3210e-eval/ostest/Make.defs | 3 ++- configs/stm3210e-eval/usbserial/Make.defs | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/configs/stm3210e-eval/RIDE/Make.defs b/configs/stm3210e-eval/RIDE/Make.defs index 68e56151a5..71aa5de695 100644 --- a/configs/stm3210e-eval/RIDE/Make.defs +++ b/configs/stm3210e-eval/RIDE/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)/RIDE/$(LDSCRIPT) - MAXOPTIMIZATION = -Os endif CC = $(CROSSDEV)gcc diff --git a/configs/stm3210e-eval/nsh/Make.defs b/configs/stm3210e-eval/nsh/Make.defs index 6504314ab8..d343a07c8c 100644 --- a/configs/stm3210e-eval/nsh/Make.defs +++ b/configs/stm3210e-eval/nsh/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)/nsh/$(LDSCRIPT) - MAXOPTIMIZATION = -Os endif CC = $(CROSSDEV)gcc diff --git a/configs/stm3210e-eval/ostest/Make.defs b/configs/stm3210e-eval/ostest/Make.defs index 2cec9a3146..1266648980 100644 --- a/configs/stm3210e-eval/ostest/Make.defs +++ b/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 diff --git a/configs/stm3210e-eval/usbserial/Make.defs b/configs/stm3210e-eval/usbserial/Make.defs index 4df6982ff4..ff8613d35d 100644 --- a/configs/stm3210e-eval/usbserial/Make.defs +++ b/configs/stm3210e-eval/usbserial/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)/usbserial/$(LDSCRIPT) - MAXOPTIMIZATION = -Os endif CC = $(CROSSDEV)gcc