-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/app_metadata_to_esp_system' into 'master'
app_update: Moved app metadata to new component `esp_app_format` Closes IDF-4808 See merge request espressif/esp-idf!18862
- Loading branch information
Showing
37 changed files
with
344 additions
and
137 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2017-2022 Espressif Systems (Shanghai) CO LTD | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#include <assert.h> | ||
#include <sys/param.h> | ||
#include "esp_ota_ops.h" | ||
#include "esp_attr.h" | ||
#include "sdkconfig.h" | ||
|
||
const esp_app_desc_t *esp_ota_get_app_description(void) | ||
{ | ||
return esp_app_get_description(); | ||
} | ||
|
||
int IRAM_ATTR esp_ota_get_app_elf_sha256(char* dst, size_t size) | ||
{ | ||
return esp_app_get_elf_sha256(dst, size); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
idf_component_register(SRCS "esp_app_desc.c" | ||
INCLUDE_DIRS "include") | ||
|
||
# esp_app_desc structure is added as an undefined symbol because otherwise the | ||
# linker will ignore this structure as it has no other files depending on it. | ||
if(NOT BOOTLOADER_BUILD) | ||
target_link_libraries(${COMPONENT_LIB} INTERFACE "-u esp_app_desc") | ||
endif() | ||
|
||
if(CONFIG_APP_PROJECT_VER_FROM_CONFIG) | ||
# Ignore current PROJECT_VER (which was set in __project_get_revision()). | ||
# Gets the version from the CONFIG_APP_PROJECT_VER. | ||
idf_build_set_property(PROJECT_VER "${CONFIG_APP_PROJECT_VER}") | ||
endif() | ||
|
||
# cut PROJECT_VER and PROJECT_NAME to required 32 characters. | ||
idf_build_get_property(project_ver PROJECT_VER) | ||
idf_build_get_property(project_name PROJECT_NAME) | ||
string(SUBSTRING "${project_ver}" 0 31 PROJECT_VER_CUT) | ||
string(SUBSTRING "${project_name}" 0 31 PROJECT_NAME_CUT) | ||
message(STATUS "App \"${PROJECT_NAME_CUT}\" version: ${PROJECT_VER_CUT}") | ||
|
||
set_source_files_properties( | ||
SOURCE "esp_app_desc.c" | ||
PROPERTIES COMPILE_DEFINITIONS | ||
"PROJECT_VER=\"${PROJECT_VER_CUT}\"; PROJECT_NAME=\"${PROJECT_NAME_CUT}\"") |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.