soc: esp32: add support to mcuboot build
Select configuration when mcuboot is enabled.
At this moment, only UNSIGNED image is supported as per
Espressif's mcuboot porting.
This also updates esp32 runner to use proper bin_file name
and updates default bootloader check.
Move CMakeLists.txt content from board to soc directory
as this support is for esp32 architecture and not board
specific.
Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
diff --git a/Kconfig.zephyr b/Kconfig.zephyr
index 6aa9513..d2d3e0a 100644
--- a/Kconfig.zephyr
+++ b/Kconfig.zephyr
@@ -695,7 +695,8 @@
config BOOTLOADER_ESP_IDF
bool "ESP-IDF bootloader support"
- depends on SOC_ESP32 || SOC_ESP32S2
+ depends on (SOC_ESP32 || SOC_ESP32S2 || SOC_ESP32C3) && !BOOTLOADER_MCUBOOT
+ default y
help
This option will trigger the compilation of the ESP-IDF bootloader
inside the build folder.