atmel-samd: Use LTO for all builds to get 5000 bytes back on express boards.

This commit is contained in:
Scott Shawcroft 2017-04-17 17:20:05 -07:00
parent ca176535a9
commit 8d0d5defc7
6 changed files with 2 additions and 11 deletions

View File

@ -107,6 +107,7 @@ CFLAGS_CORTEX_M0 = \
-ffunction-sections \
-fdata-sections \
-fshort-enums \
-flto \
-D ARM_MATH_CM0PLUS=true \
-DSYSTICK_MODE \
-DEXTINT_CALLBACK_MODE=true \
@ -120,7 +121,7 @@ CFLAGS_CORTEX_M0 = \
-DTC_ASYNC=true \
-DUSB_DEVICE_LPM_SUPPORT \
--param max-inline-insns-single=500
CFLAGS = $(INC) -Wall -Werror -std=gnu11 -nostdlib $(CFLAGS_CORTEX_M0) $(COPT) $(BOARD_CFLAGS)
CFLAGS = $(INC) -Wall -Werror -std=gnu11 -nostdlib $(CFLAGS_CORTEX_M0) $(COPT)
#Debugging/Optimization
# TODO(tannewt): Figure out what NDEBUG does. Adding it to the debug build

View File

@ -5,5 +5,3 @@ USB_PID = 0x824D
FLASH_IMPL = internal_flash.c
CHIP_VARIANT = SAMD21G18A
BOARD_CFLAGS = -flto

View File

@ -5,5 +5,3 @@ USB_PID = 0x8015
FLASH_IMPL = internal_flash.c
CHIP_VARIANT = SAMD21G18A
BOARD_CFLAGS = -flto

View File

@ -5,5 +5,3 @@ USB_PID = 0x8015
FLASH_IMPL = internal_flash.c
CHIP_VARIANT = SAMD21G18A
BOARD_CFLAGS = -flto

View File

@ -5,5 +5,3 @@ USB_PID = 0x8015
FLASH_IMPL = internal_flash.c
CHIP_VARIANT = SAMD21E18A
BOARD_CFLAGS = -flto

View File

@ -5,5 +5,3 @@ USB_PID = 0x8015
FLASH_IMPL = internal_flash.c
CHIP_VARIANT = SAMD21E18A
BOARD_CFLAGS = -flto