mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
refactor(app_update): rename SECURE_SIGNED_DATA_PARTITION Kconfig option
This commit is contained in:
committed by
Mahavir Jain
parent
8589d9df25
commit
b912691fcd
@@ -6,7 +6,7 @@ include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(partitions_ota)
|
||||
|
||||
# Copy storage.bin from test folder to build directory
|
||||
if(CONFIG_SECURE_SIGNED_DATA_PARTITION)
|
||||
if(CONFIG_APP_UPDATE_SECURE_SIGNED_DATA_PARTITION)
|
||||
set(storage_file signed_storage.bin)
|
||||
else()
|
||||
set(storage_file storage.bin)
|
||||
|
||||
@@ -209,12 +209,12 @@ static esp_err_t ota_update_partitions(esp_https_ota_config_t *ota_config)
|
||||
}
|
||||
|
||||
} else if (strstr(ota_config->http_config->url, "storage.bin") != NULL) {
|
||||
#if CONFIG_SECURE_SIGNED_DATA_PARTITION
|
||||
#if CONFIG_APP_UPDATE_SECURE_SIGNED_DATA_PARTITION
|
||||
ota_config->partition.staging = esp_partition_find_first(ESP_PARTITION_TYPE_DATA, ESP_PARTITION_SUBTYPE_ANY, "staging");
|
||||
assert(ota_config->partition.staging != NULL);
|
||||
#else
|
||||
ota_config->partition.staging = NULL; // free app ota partition will be selected and used for downloading a new image
|
||||
#endif // SECURE_SIGNED_DATA_PARTITION
|
||||
#endif // APP_UPDATE_SECURE_SIGNED_DATA_PARTITION
|
||||
ota_config->partition.final = esp_partition_find_first(ESP_PARTITION_TYPE_DATA, ESP_PARTITION_SUBTYPE_ANY, "storage");
|
||||
assert(ota_config->partition.final != NULL);
|
||||
ota_config->partition.finalize_with_copy = true; // After the download is complete, copy the received image to the final partition automatically
|
||||
|
||||
@@ -29,4 +29,4 @@ CONFIG_SECURE_SIGNED_ON_UPDATE_NO_SECURE_BOOT=y
|
||||
CONFIG_SECURE_SIGNED_APPS_RSA_SCHEME=y
|
||||
CONFIG_SECURE_BOOT_SIGNING_KEY="test/secure_boot_signing_key.pem"
|
||||
CONFIG_SECURE_BOOT_ALLOW_SHORT_APP_PARTITION=y
|
||||
CONFIG_SECURE_SIGNED_DATA_PARTITION=y
|
||||
CONFIG_APP_UPDATE_SECURE_SIGNED_DATA_PARTITION=y
|
||||
|
||||
Reference in New Issue
Block a user