feat(app_update): add app description data and its functions

This commit is contained in:
donghengqaz
2020-02-13 16:55:04 +08:00
committed by Dong Heng
parent 5a91acd79a
commit 3d19ecebd1
7 changed files with 257 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
idf_component_register(SRCS "esp_ota_ops.c"
idf_component_register(SRCS "esp_ota_ops.c" "esp_app_desc.c"
INCLUDE_DIRS "include"
REQUIRES spi_flash partition_table bootloader_support
PRIV_REQUIRES util)
@@ -14,7 +14,7 @@ string(SUBSTRING "${project_ver}" 0 31 PROJECT_VER_CUT)
string(SUBSTRING "${project_name}" 0 31 PROJECT_NAME_CUT)
set_source_files_properties(
SOURCE "esp_app_desc.c"
SOURCE "esp_app_desc.c" "esp_app_desc.c"
PROPERTIES COMPILE_DEFINITIONS
"PROJECT_VER=\"${PROJECT_VER_CUT}\"; PROJECT_NAME=\"${PROJECT_NAME_CUT}\"")