From ea5f825a916e3c1ba29ea172d94c2f7b8bcaf8dd Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 10 Jun 2016 19:03:40 -0400 Subject: build: Default to O2 optimization Default to O2 and set Os in the AVR makefile. Platforms besides AVR are likely to produce better code with O2 so make that the default. Signed-off-by: Kevin O'Connor --- src/avr/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/avr/Makefile b/src/avr/Makefile index ce580265..af8d9f49 100644 --- a/src/avr/Makefile +++ b/src/avr/Makefile @@ -5,7 +5,7 @@ CROSS_PREFIX=avr- dirs-y += src/avr lib/pjrc_usb_serial -CFLAGS-y += -mmcu=$(CONFIG_MCU) -DF_CPU=$(CONFIG_CLOCK_FREQ) +CFLAGS-y += -Os -mmcu=$(CONFIG_MCU) -DF_CPU=$(CONFIG_CLOCK_FREQ) LDFLAGS-y += -Wl,--relax # Add avr source files -- cgit v1.2.3-70-g09d2