Skip to content

Commit

Permalink
esp32: add ESP-IDF bootloader option
Browse files Browse the repository at this point in the history
add ESP-IDF bootloader support

Signed-off-by: Gautier Seidel <[email protected]>
  • Loading branch information
GautierAtWork authored and nashif committed Jul 2, 2018
1 parent 7ba7119 commit 52ed379
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
11 changes: 11 additions & 0 deletions boards/xtensa/esp32/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

if(CONFIG_BOOTLOADER_ESP_IDF)
add_custom_target(EspIdfBootloader
COMMAND PATH=$ENV{PATH}:${ESPRESSIF_TOOLCHAIN_PATH}/bin make IDF_PATH=${ESP_IDF_PATH} -C ${ESP_IDF_PATH}/examples/get-started/hello_world/ BUILD_DIR_BASE=${CMAKE_BINARY_DIR}/esp-idf defconfig
COMMAND PATH=$ENV{PATH}:${ESPRESSIF_TOOLCHAIN_PATH}/bin make IDF_PATH=${ESP_IDF_PATH} -C ${ESP_IDF_PATH}/examples/get-started/hello_world/ BUILD_DIR_BASE=${CMAKE_BINARY_DIR}/esp-idf bootloader
COMMAND PATH=$ENV{PATH}:${ESPRESSIF_TOOLCHAIN_PATH}/bin make IDF_PATH=${ESP_IDF_PATH} -C ${ESP_IDF_PATH}/examples/get-started/hello_world/ BUILD_DIR_BASE=${CMAKE_BINARY_DIR}/esp-idf partition_table
)

add_dependencies(app EspIdfBootloader)

endif()
10 changes: 10 additions & 0 deletions misc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,16 @@ config BOOTLOADER_MCUBOOT
* Including dts/common/mcuboot.overlay when building the Device
Tree in order to place and link the image at the slot0 offset

config BOOTLOADER_ESP_IDF
bool
prompt "ESP-IDF bootloader support"
default n
help
This option will trigger the compilation of the ESP-IDF booloader
inside the build folder.
At flash time, the bootloader will be flashed with the zephyr image
depends on SOC_ESP32

config BOOTLOADER_KEXEC
bool
prompt "Boot using Linux kexec() system call"
Expand Down

0 comments on commit 52ed379

Please sign in to comment.