samd: Consolidate small build optimization flags

.. inline-unit-growth was the same across all boards, and the highest
max-inline-insns-auto parameter was shared across 2 of 5 boards, so it's
worth a little work to follow the DRY principle
This commit is contained in:
Jeff Epler 2019-11-29 10:51:16 -06:00
parent 82f55dc046
commit d843156a5e
6 changed files with 7 additions and 7 deletions

View File

@ -125,6 +125,10 @@ else
CFLAGS += -flto -flto-partition=none
ifeq ($(CIRCUITPY_SMALL_BUILD),1)
CFLAGS += --param inline-unit-growth=15 --param max-inline-insns-auto=20
endif
ifdef CFLAGS_BOARD
CFLAGS += $(CFLAGS_BOARD)
endif

View File

@ -24,4 +24,4 @@ SUPEROPT_GC = 0
FROZEN_MPY_DIRS += $(TOP)/frozen/pew-pewpew-standalone-10.x
CFLAGS_BOARD = --param inline-unit-growth=15 --param max-inline-insns-auto=15
CFLAGS_BOARD = --param max-inline-insns-auto=15

View File

@ -30,4 +30,4 @@ FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_DotStar
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_HID
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_IRRemote
CFLAGS_BOARD = --param inline-unit-growth=15 --param max-inline-insns-auto=12
CFLAGS_BOARD = --param max-inline-insns-auto=12

View File

@ -13,4 +13,4 @@ CIRCUITPY_SMALL_BUILD = 1
SUPEROPT_GC = 0
CFLAGS_BOARD = --param inline-unit-growth=15 --param max-inline-insns-auto=15
CFLAGS_BOARD = --param max-inline-insns-auto=15

View File

@ -12,5 +12,3 @@ LONGINT_IMPL = NONE
CIRCUITPY_SMALL_BUILD = 1
SUPEROPT_GC = 0
CFLAGS_BOARD = --param inline-unit-growth=15 --param max-inline-insns-auto=20

View File

@ -10,5 +10,3 @@ CHIP_FAMILY = samd21
INTERNAL_FLASH_FILESYSTEM = 1
LONGINT_IMPL = NONE
CIRCUITPY_SMALL_BUILD = 1
CFLAGS_BOARD = --param inline-unit-growth=15 --param max-inline-insns-auto=20