esp32c3: Add support for building image with a minimum target revision

This commit is contained in:
Angus Gratton
2021-02-23 17:40:38 +11:00
committed by alex.li
parent d6a6c3b46d
commit 10d1e4ab1b
2 changed files with 31 additions and 1 deletions

View File

@@ -39,7 +39,15 @@ if(NOT CONFIG_SECURE_BOOT_ALLOW_SHORT_APP_PARTITION AND
endif()
if(CONFIG_ESP32_REV_MIN)
list(APPEND esptool_elf2image_args --min-rev ${CONFIG_ESP32_REV_MIN})
set(min_rev ${CONFIG_ESP32_REV_MIN})
endif()
if(CONFIG_ESP32C3_REV_MIN)
set(min_rev ${CONFIG_ESP32C3_REV_MIN})
endif()
if(min_rev)
list(APPEND esptool_elf2image_args --min-rev ${min_rev})
unset(min_rev)
endif()
if(CONFIG_ESPTOOLPY_FLASHSIZE_DETECT)