From 12a2e89ac69b815c69ff8e0219bbc71da61c2518 Mon Sep 17 00:00:00 2001 From: "harshal.patil" Date: Thu, 1 Aug 2024 14:10:06 +0530 Subject: [PATCH] fix(bootloader_support): Fix encrypt image instead of the partition feature not being enabled --- .../bootloader_support/src/flash_encryption/flash_encrypt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/bootloader_support/src/flash_encryption/flash_encrypt.c b/components/bootloader_support/src/flash_encryption/flash_encrypt.c index a0a48312e0..850fcb9984 100644 --- a/components/bootloader_support/src/flash_encryption/flash_encrypt.c +++ b/components/bootloader_support/src/flash_encryption/flash_encrypt.c @@ -422,7 +422,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;