16 lines
No EOL
643 B
CMake
16 lines
No EOL
643 B
CMake
idf_component_register(PRIV_REQUIRES partition_table)
|
|
|
|
# Do not generate flash file when building bootloader or is in early expansion of the build
|
|
if(BOOTLOADER_BUILD OR NOT CONFIG_APP_BUILD_BOOTLOADER)
|
|
return()
|
|
endif()
|
|
|
|
add_dependencies(bootloader partition_table)
|
|
|
|
esptool_py_custom_target(bootloader-flash bootloader "bootloader")
|
|
esptool_py_flash_target_image(bootloader-flash bootloader "0x1000" "${BOOTLOADER_BUILD_DIR}/bootloader.bin")
|
|
|
|
# Also attach an image to the project flash target
|
|
if(NOT CONFIG_SECURE_BOOT_ENABLED)
|
|
esptool_py_flash_target_image(flash bootloader "0x1000" "${BOOTLOADER_BUILD_DIR}/bootloader.bin")
|
|
endif() |