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:
parent
82f55dc046
commit
d843156a5e
@ -125,6 +125,10 @@ else
|
|||||||
|
|
||||||
CFLAGS += -flto -flto-partition=none
|
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
|
ifdef CFLAGS_BOARD
|
||||||
CFLAGS += $(CFLAGS_BOARD)
|
CFLAGS += $(CFLAGS_BOARD)
|
||||||
endif
|
endif
|
||||||
|
@ -24,4 +24,4 @@ SUPEROPT_GC = 0
|
|||||||
|
|
||||||
FROZEN_MPY_DIRS += $(TOP)/frozen/pew-pewpew-standalone-10.x
|
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
|
||||||
|
@ -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_HID
|
||||||
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_IRRemote
|
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
|
||||||
|
@ -13,4 +13,4 @@ CIRCUITPY_SMALL_BUILD = 1
|
|||||||
|
|
||||||
SUPEROPT_GC = 0
|
SUPEROPT_GC = 0
|
||||||
|
|
||||||
CFLAGS_BOARD = --param inline-unit-growth=15 --param max-inline-insns-auto=15
|
CFLAGS_BOARD = --param max-inline-insns-auto=15
|
||||||
|
@ -12,5 +12,3 @@ LONGINT_IMPL = NONE
|
|||||||
CIRCUITPY_SMALL_BUILD = 1
|
CIRCUITPY_SMALL_BUILD = 1
|
||||||
|
|
||||||
SUPEROPT_GC = 0
|
SUPEROPT_GC = 0
|
||||||
|
|
||||||
CFLAGS_BOARD = --param inline-unit-growth=15 --param max-inline-insns-auto=20
|
|
||||||
|
@ -10,5 +10,3 @@ CHIP_FAMILY = samd21
|
|||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
LONGINT_IMPL = NONE
|
||||||
CIRCUITPY_SMALL_BUILD = 1
|
CIRCUITPY_SMALL_BUILD = 1
|
||||||
|
|
||||||
CFLAGS_BOARD = --param inline-unit-growth=15 --param max-inline-insns-auto=20
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user