Skip to content

Commit edddfff

Browse files
committed
raspberrypi: use -O2, not default -O3, for a few boards
1 parent 3d980e8 commit edddfff

File tree

5 files changed

+15
-0
lines changed

5 files changed

+15
-0
lines changed

ports/raspberrypi/boards/cytron_edu_pico_w/mpconfigboard.mk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ CFLAGS += \
3434
# Must be accompanied by a linker script change
3535
CFLAGS += -DCIRCUITPY_FIRMWARE_SIZE='(1536 * 1024)'
3636

37+
# The default is -O3. Change to -O2 because the build was overflowing.
38+
OPTIMIZATION_FLAGS = -O2
39+
3740
# Include these Python libraries in firmware.
3841
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_NeoPixel
3942
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_Motor

ports/raspberrypi/boards/wiznet_w5100s_evb_pico/mpconfigboard.mk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ CIRCUITPY__EVE = 1
1212
CIRCUITPY_FLOPPYIO = 0
1313
CIRCUITPY_SSL = 1
1414
CIRCUITPY_USB_HOST = 0
15+
16+
# The default is -O3. Change to -O2 because the build was overflowing.
17+
OPTIMIZATION_FLAGS = -O2

ports/raspberrypi/boards/wiznet_w5100s_evb_pico2/mpconfigboard.mk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ EXTERNAL_FLASH_DEVICES = "W25Q32JVxQ"
1111

1212
CIRCUITPY__EVE = 1
1313
CIRCUITPY_SSL = 1
14+
15+
# The default is -O3. Change to -O2 because the build was overflowing.
16+
OPTIMIZATION_FLAGS = -O2

ports/raspberrypi/boards/wiznet_w5500_evb_pico/mpconfigboard.mk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ CIRCUITPY__EVE = 1
1212
CIRCUITPY_FLOPPYIO = 0
1313
CIRCUITPY_SSL = 1
1414
CIRCUITPY_USB_HOST = 0
15+
16+
# The default is -O3. Change to -O2 because the build was overflowing.
17+
OPTIMIZATION_FLAGS = -O2

ports/raspberrypi/boards/wiznet_w5500_evb_pico2/mpconfigboard.mk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ EXTERNAL_FLASH_DEVICES = "W25Q32JVxQ"
1111

1212
CIRCUITPY__EVE = 1
1313
CIRCUITPY_SSL = 1
14+
15+
# The default is -O3. Change to -O2 because the build was overflowing.
16+
OPTIMIZATION_FLAGS = -O2

0 commit comments

Comments
 (0)