fix(bootloader_support): Fix encrypt image instead of the partition feature not being enabled

This commit is contained in:
harshal.patil 2024-08-01 14:10:06 +05:30
parent 3e974bd8a3
commit 470ad32f2c
No known key found for this signature in database
GPG Key ID: 5B5EC97C35B9A2E5

View File

@ -428,7 +428,7 @@ static esp_err_t encrypt_partition(int index, const esp_partition_info_t *partit
&partition->pos,
&image_data);
should_encrypt = (err == ESP_OK);
#ifdef SECURE_FLASH_ENCRYPT_ONLY_IMAGE_LEN_IN_APP_PART
#ifdef CONFIG_SECURE_FLASH_ENCRYPT_ONLY_IMAGE_LEN_IN_APP_PART
if (should_encrypt) {
// Encrypt only the app image instead of encrypting the whole partition
size = image_data.image_len;