From 2c67671651651363fc6f89a334508d0029758eef Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 12 Jul 2023 00:12:13 +1000 Subject: [PATCH] esp32/boards/GENERIC_OTA: Enable silent checks to reduce firmware size. Enabling mDNS put this firmware over the limit of the OTA partition size, so tweak the compiler settings to reduce the firmware size. Signed-off-by: Damien George --- ports/esp32/boards/GENERIC_OTA/sdkconfig.board | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ports/esp32/boards/GENERIC_OTA/sdkconfig.board b/ports/esp32/boards/GENERIC_OTA/sdkconfig.board index d314860cc9..7ff939aa99 100644 --- a/ports/esp32/boards/GENERIC_OTA/sdkconfig.board +++ b/ports/esp32/boards/GENERIC_OTA/sdkconfig.board @@ -1,3 +1,6 @@ CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE=y CONFIG_PARTITION_TABLE_CUSTOM=y CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions-ota.csv" + +# Reduce firmware size to fit in the OTA partition. +CONFIG_COMPILER_OPTIMIZATION_CHECKS_SILENT=y