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
crypto-aes
Jeff Epler 3 years ago
parent 82f55dc046
commit d843156a5e
  1. 4
      ports/atmel-samd/Makefile
  2. 2
      ports/atmel-samd/boards/pewpew10/mpconfigboard.mk
  3. 2
      ports/atmel-samd/boards/pirkey_m0/mpconfigboard.mk
  4. 2
      ports/atmel-samd/boards/pyruler/mpconfigboard.mk
  5. 2
      ports/atmel-samd/boards/trinket_m0/mpconfigboard.mk
  6. 2
      ports/atmel-samd/boards/uchip/mpconfigboard.mk

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

Loading…
Cancel
Save