diff --git a/flight/AHRS/Makefile b/flight/AHRS/Makefile index 8bc430415..b0de38d0a 100644 --- a/flight/AHRS/Makefile +++ b/flight/AHRS/Makefile @@ -28,11 +28,11 @@ include $(TOP)/make/firmware-defs.mk # Set developer code and compile options # Set to YES for debugging -DEBUG ?= YES +DEBUG ?= NO USE_BOOTLOADER ?= NO # Set to YES when using Code Sourcery toolchain -CODE_SOURCERY ?= NO +CODE_SOURCERY ?= YES ifeq ($(CODE_SOURCERY), YES) REMOVE_CMD = cs-rm @@ -264,7 +264,7 @@ CFLAGS += -mcpu=$(MCU) CFLAGS += $(CDEFS) CFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS)) -I. -CFLAGS += -mapcs-frame -ffunction-sections +CFLAGS += -mapcs-frame CFLAGS += -fomit-frame-pointer ifeq ($(CODE_SOURCERY), YES) CFLAGS += -fpromote-loop-indices