From ff0227fa0d8821eb0acdb7f45e4087b3567e4d6f Mon Sep 17 00:00:00 2001 From: Damien George Date: Sun, 9 Jan 2022 11:22:30 +1100 Subject: [PATCH] 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 --- ports/esp32/boards/GENERIC_D2WD/sdkconfig.board | 4 ++++ 1 file changed, 4 insertions(+) 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