Skip to content

Commit 12a2e89

Browse files
committed
fix(bootloader_support): Fix encrypt image instead of the partition feature not being enabled
1 parent 6568f8c commit 12a2e89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/bootloader_support/src/flash_encryption/flash_encrypt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ static esp_err_t encrypt_partition(int index, const esp_partition_info_t *partit
422422
&partition->pos,
423423
&image_data);
424424
should_encrypt = (err == ESP_OK);
425-
#ifdef SECURE_FLASH_ENCRYPT_ONLY_IMAGE_LEN_IN_APP_PART
425+
#ifdef CONFIG_SECURE_FLASH_ENCRYPT_ONLY_IMAGE_LEN_IN_APP_PART
426426
if (should_encrypt) {
427427
// Encrypt only the app image instead of encrypting the whole partition
428428
size = image_data.image_len;

0 commit comments

Comments
 (0)