2018-09-11 01:44:12 +00:00
|
|
|
set(COMPONENT_SRCS "esp_ota_ops.c")
|
2018-01-19 05:22:08 +00:00
|
|
|
set(COMPONENT_ADD_INCLUDEDIRS "include")
|
|
|
|
|
2018-08-31 04:30:14 +00:00
|
|
|
set(COMPONENT_REQUIRES spi_flash partition_table)
|
2018-05-11 15:54:45 +00:00
|
|
|
set(COMPONENT_PRIV_REQUIRES bootloader_support)
|
2018-03-22 06:27:10 +00:00
|
|
|
|
2018-01-12 02:49:13 +00:00
|
|
|
register_component()
|
2018-08-31 04:30:14 +00:00
|
|
|
|
|
|
|
# Add custom target for generating empty otadata partition for flashing
|
|
|
|
if(${OTADATA_PARTITION_OFFSET})
|
|
|
|
add_custom_command(OUTPUT "${PROJECT_BINARY_DIR}/${BLANK_OTADATA_FILE}"
|
|
|
|
COMMAND ${PYTHON} ${CMAKE_CURRENT_SOURCE_DIR}/gen_empty_partition.py
|
|
|
|
--size ${OTADATA_PARTITION_SIZE} "${PROJECT_BINARY_DIR}/${BLANK_OTADATA_FILE}")
|
|
|
|
|
|
|
|
add_custom_target(blank_ota_data ALL DEPENDS "${PROJECT_BINARY_DIR}/${BLANK_OTADATA_FILE}")
|
|
|
|
add_dependencies(flash blank_ota_data)
|
|
|
|
endif()
|