Skip to content

Commit 23f111b

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 ccbdcf1 commit 23f111b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@
3737
* In these cases, MCUBOOT_BOOT_MAX_ALIGN value must be taken from DT */
3838
#define MCUBOOT_BOOT_MAX_ALIGN DT_PROP(DT_CHOSEN(zephyr_flash), write_block_size)
3939

40+
#if defined(CONFIG_SECURE_FLASH_ENC_ENABLED) || (MCUBOOT_BOOT_MAX_ALIGN == 32)
41+
#define MCUBOOT_FLASH_HAS_HW_ENCRYPTION 1
42+
#endif
43+
44+
#ifdef MCUBOOT_FLASH_HAS_HW_ENCRYPTION
45+
#define FLASH_AUX_WRITE_BUFFER_SIZE 0x100
46+
#endif
4047

4148
/*
4249
* Upgrade mode

0 commit comments

Comments
 (0)