From 73787f7f15382986bb22fdcbd312472ab5b5c20c Mon Sep 17 00:00:00 2001 From: stac Date: Wed, 15 Sep 2010 14:21:06 +0000 Subject: [PATCH] ahrs: No longer support -O0 since it doesn't fit Leaving debug on allows the -g option to be enabled so that we can have symbols in gdb even though we're forcing the optimization flags to -Os. git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1631 ebee16cc-31ac-478f-84a7-5cbb03baadba --- flight/AHRS/Makefile | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/flight/AHRS/Makefile b/flight/AHRS/Makefile index 0a00a79e3..785623f3e 100644 --- a/flight/AHRS/Makefile +++ b/flight/AHRS/Makefile @@ -25,7 +25,7 @@ # Set developer code and compile options # Set to YES for debugging -DEBUG ?= NO +DEBUG ?= YES USE_BOOTLOADER ?= NO # Set to YES when using Code Sourcery toolchain @@ -192,12 +192,7 @@ LINKERSCRIPTPATH = $(PIOSSTM32F10X) # 0 = turn off optimization. s = optimize for size. # (Note: 3 is not always the best optimization level. See avr-libc FAQ.) -ifeq ($(DEBUG),YES) -CFLAGS += -O0 -CFLAGS += -DGENERAL_COV -else CFLAGS += -Os -endif # Output format. (can be ihex or binary or both) # binary to create a load-image in raw-binary format i.e. for SAM-BA,