Skip to content

Commit d83a4ac

Browse files
committed
Changes to add compiler optimization option
1 parent 2aef9b0 commit d83a4ac

File tree

13 files changed

+11
-5
lines changed

13 files changed

+11
-5
lines changed

ports/atmel-samd/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@ CFLAGS += -Os -DNDEBUG
106106
CFLAGS += -DCFG_TUSB_MCU=OPT_MCU_SAMD51 -DCFG_TUD_MIDI_RX_BUFSIZE=128 -DCFG_TUD_CDC_RX_BUFSIZE=256 -DCFG_TUD_MIDI_TX_BUFSIZE=128 -DCFG_TUD_CDC_TX_BUFSIZE=256 -DCFG_TUD_MSC_BUFSIZE=1024
107107
endif
108108

109+
# option to override compiler optimization level, set in boards/$(BOARD)/mpconfigboard.mk
109110
ifdef OPTIMIZATION_LEVEL
110111
CFLAGS += -O$(OPTIMIZATION_LEVEL)
111112
endif
112113

113-
114114
$(echo PERIPHERALS_CHIP_FAMILY=$(PERIPHERALS_CHIP_FAMILY))
115115
#Debugging/Optimization
116116
ifeq ($(DEBUG), 1)

ports/atmel-samd/boards/itsybitsy_m4_express/mpconfigboard.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,4 @@ LONGINT_IMPL = MPZ
1515
CIRCUITPY_AUDIOBUSIO = 0
1616

1717
CIRCUITPY_BITBANG_APA102 = 1
18-
1918
OPTIMIZATION_LEVEL = 2

ports/atmel-samd/boards/pybadge/mpconfigboard.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,4 @@ CIRCUITPY_GAMEPADSHIFT = 1
1616
CIRCUITPY_STAGE = 1
1717

1818
FROZEN_MPY_DIRS += $(TOP)/frozen/circuitpython-stage/pybadge
19-
2019
OPTIMIZATION_LEVEL = 2

ports/atmel-samd/boards/pyportal/mpconfigboard.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@ QSPI_FLASH_FILESYSTEM = 1
1010
EXTERNAL_FLASH_DEVICE_COUNT = 2
1111
EXTERNAL_FLASH_DEVICES = "W25Q64JV_IQ, GD25Q64C"
1212
LONGINT_IMPL = MPZ
13-
1413
OPTIMIZATION_LEVEL = 2

ports/cxd56/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ CFLAGS += \
123123
-fdata-sections \
124124
-Wall \
125125

126+
# option to override compiler optimization level, set in boards/$(BOARD)/mpconfigboard.mk
126127
ifdef OPTIMIZATION_LEVEL
127128
CFLAGS += -O$(OPTIMIZATION_LEVEL)
128129
endif

ports/esp32s2/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ else
109109
### CFLAGS += -flto
110110
endif
111111

112+
# option to override compiler optimization level, set in boards/$(BOARD)/mpconfigboard.mk
112113
ifdef OPTIMIZATION_LEVEL
113114
CFLAGS += -O$(OPTIMIZATION_LEVEL)
114115
endif

ports/esp32s2/boards/espressif_saola_1_wroom/mpconfigboard.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,4 @@ CIRCUITPY_ESP_FLASH_FREQ=40m
1717
CIRCUITPY_ESP_FLASH_SIZE=4MB
1818

1919
CIRCUITPY_MODULE=wroom
20-
2120
OPTIMIZATION_LEVEL = 2

ports/litex/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ else
8383
### CFLAGS += -flto
8484
endif
8585

86+
# option to override compiler optimization level, set in boards/$(BOARD)/mpconfigboard.mk
8687
ifdef OPTIMIZATION_LEVEL
8788
CFLAGS += -O$(OPTIMIZATION_LEVEL)
8889
endif

ports/mimxrt10xx/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ CFLAGS += \
108108
-Os -g3 -Wno-unused-parameter \
109109
-ffunction-sections -fdata-sections -fstack-usage
110110

111+
# option to override compiler optimization level, set in boards/$(BOARD)/mpconfigboard.mk
111112
ifdef OPTIMIZATION_LEVEL
112113
CFLAGS += -O$(OPTIMIZATION_LEVEL)
113114
endif

ports/nrf/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ else
9292
CFLAGS += -flto -flto-partition=none
9393
endif
9494

95+
# option to override compiler optimization level, set in boards/$(BOARD)/mpconfigboard.mk
9596
ifdef OPTIMIZATION_LEVEL
9697
CFLAGS += -O$(OPTIMIZATION_LEVEL)
9798
endif

0 commit comments

Comments
 (0)