2022-01-09 00:22:30 +00:00
|
|
|
# Optimise using -Os to reduce size
|
|
|
|
CONFIG_COMPILER_OPTIMIZATION_SIZE=y
|
|
|
|
CONFIG_COMPILER_OPTIMIZATION_PERF=n
|
2023-05-09 00:52:54 +01:00
|
|
|
CONFIG_COMPILER_OPTIMIZATION_CHECKS_SILENT=y
|
2022-01-09 00:22:30 +00:00
|
|
|
|
2023-11-22 23:39:12 +00:00
|
|
|
# Change maximum log level to error, to reduce firmware size.
|
|
|
|
CONFIG_LOG_MAXIMUM_LEVEL_ERROR=y
|
|
|
|
CONFIG_LOG_MAXIMUM_LEVEL_INFO=n
|
|
|
|
|
2023-10-31 23:38:52 +00:00
|
|
|
# Disable SPI Ethernet driver to reduce firmware size.
|
|
|
|
CONFIG_ETH_USE_SPI_ETHERNET=n
|
|
|
|
|
2020-09-23 06:55:55 +01:00
|
|
|
CONFIG_ESPTOOLPY_FLASHMODE_DIO=y
|
|
|
|
CONFIG_ESPTOOLPY_FLASHFREQ_40M=y
|
|
|
|
CONFIG_ESPTOOLPY_FLASHSIZE_2MB=y
|
|
|
|
CONFIG_PARTITION_TABLE_CUSTOM=y
|
|
|
|
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions-2MiB.csv"
|