diff options
| author | Damien George <damien@micropython.org> | 2022-01-09 11:22:30 +1100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2022-01-09 11:25:37 +1100 |
| commit | ff0227fa0d8821eb0acdb7f45e4087b3567e4d6f (patch) | |
| tree | 5d84c297a10c6e5581431efa6cff707793c1a6b5 | |
| parent | 1892d037409a95511ce9f38782a7fafab95052c4 (diff) | |
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 549448e8bbc8ce0b6b5fc51c0660acdaff18c3d6 made all boards
build with -O2 by default (for performance) so this overrides that default.
Signed-off-by: Damien George <damien@micropython.org>
| -rw-r--r-- | ports/esp32/boards/GENERIC_D2WD/sdkconfig.board | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ports/esp32/boards/GENERIC_D2WD/sdkconfig.board b/ports/esp32/boards/GENERIC_D2WD/sdkconfig.board index 367283ded..07e208a09 100644 --- a/ports/esp32/boards/GENERIC_D2WD/sdkconfig.board +++ b/ports/esp32/boards/GENERIC_D2WD/sdkconfig.board @@ -1,3 +1,7 @@ +# Optimise using -Os to reduce size +CONFIG_COMPILER_OPTIMIZATION_SIZE=y +CONFIG_COMPILER_OPTIMIZATION_PERF=n + CONFIG_ESPTOOLPY_FLASHMODE_DIO=y CONFIG_ESPTOOLPY_FLASHFREQ_40M=y CONFIG_ESPTOOLPY_FLASHSIZE_2MB=y |
