summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2023-07-12 00:12:13 +1000
committerDamien George <damien@micropython.org>2023-07-12 00:12:13 +1000
commit2c67671651651363fc6f89a334508d0029758eef (patch)
treeb1ab0fcf9a66c180531d32214f0ee1c99991c411
parent1f35576a69e626bd9801f0e9ca6aa117405a39fc (diff)
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 <damien@micropython.org>
-rw-r--r--ports/esp32/boards/GENERIC_OTA/sdkconfig.board3
1 files changed, 3 insertions, 0 deletions
diff --git a/ports/esp32/boards/GENERIC_OTA/sdkconfig.board b/ports/esp32/boards/GENERIC_OTA/sdkconfig.board
index d314860cc..7ff939aa9 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