Skip to content

Commit ff0227f

Browse files
committed
esp32/boards/GENERIC_D2WD: Build with -Os optimisation.
This board has only 2MiB of flash so the build needs to be reduced in size to fit. Commit 549448e made all boards build with -O2 by default (for performance) so this overrides that default. Signed-off-by: Damien George <damien@micropython.org>
1 parent 1892d03 commit ff0227f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ports/esp32/boards/GENERIC_D2WD/sdkconfig.board

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Optimise using -Os to reduce size
2+
CONFIG_COMPILER_OPTIMIZATION_SIZE=y
3+
CONFIG_COMPILER_OPTIMIZATION_PERF=n
4+
15
CONFIG_ESPTOOLPY_FLASHMODE_DIO=y
26
CONFIG_ESPTOOLPY_FLASHFREQ_40M=y
37
CONFIG_ESPTOOLPY_FLASHSIZE_2MB=y

0 commit comments

Comments
 (0)