Skip to content

Commit 6823e25

Browse files
committed
espressif: port: add MCUBOOT_FLASH_HAS_HW_ENCRYPTION config to mcuboot_config header
Signed-off-by: Almir Okato <[email protected]>
1 parent acec461 commit 6823e25

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

zephyr/port/include/boot/mcuboot_config/mcuboot_config.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@
4040
#define MCUBOOT_BOOT_MAX_ALIGN DT_PROP(DT_CHOSEN(zephyr_flash), write_block_size)
4141
#endif
4242

43+
#if defined(CONFIG_SECURE_FLASH_ENC_ENABLED) || (MCUBOOT_BOOT_MAX_ALIGN == 32)
44+
#define MCUBOOT_FLASH_HAS_HW_ENCRYPTION 1
45+
#endif
46+
47+
#ifdef MCUBOOT_FLASH_HAS_HW_ENCRYPTION
48+
#define FLASH_AUX_WRITE_BUFFER_SIZE 0x100
49+
#endif
50+
4351
/*
4452
* Upgrade mode
4553
*

0 commit comments

Comments
 (0)