[esp32] Fix flash size warning when using IDF (#7983)

This commit is contained in:
Keith Burzinski 2024-12-20 01:28:08 -06:00
parent fe0700166a
commit 37fcccbb1c
No known key found for this signature in database
GPG Key ID: 802564C5F0EEFFBE

View File

@ -602,6 +602,9 @@ async def to_code(config):
cg.add_platformio_option(
"platform_packages", ["espressif/toolchain-esp32ulp@2.35.0-20220830"]
)
add_idf_sdkconfig_option(
f"CONFIG_ESPTOOLPY_FLASHSIZE_{config[CONF_FLASH_SIZE]}", True
)
add_idf_sdkconfig_option("CONFIG_PARTITION_TABLE_SINGLE_APP", False)
add_idf_sdkconfig_option("CONFIG_PARTITION_TABLE_CUSTOM", True)
add_idf_sdkconfig_option(