mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 21:36:28 +08:00
arch/xtensa: flash encryption support for ESP32|S2|S3
Deprecates ESP32_STORAGE_MTD_ENCRYPT and ESP32_OTA_PARTITION_ENCRYPT options. Add ESPRESSIF_SECURE_FLASH_ENC_ENABLED Kconfig option. Updates SPI Flash driver to handle encryption automatically. Signed-off-by: Filipe Cavalcanti <filipe.cavalcanti@espressif.com>
This commit is contained in:
committed by
simbit18
parent
0835b345e8
commit
3a74b82e09
@@ -267,6 +267,7 @@ SECTIONS
|
||||
*libarch.a:spi_flash_os_func_app.*(.literal .literal.* .text .text.*)
|
||||
*libarch.a:flash_brownout_hook.*(.literal .literal.* .text .text.*)
|
||||
*libarch.a:esp_cache.*(.literal .literal.* .text .text.*)
|
||||
*libarch.a:cache_esp32.*(.literal .literal.* .text .text.*)
|
||||
*libarch.a:cache_hal_esp32.*(.literal .literal.* .text .text.*)
|
||||
*libarch.a:cache_utils.*(.literal .literal.* .text .text.*)
|
||||
*libarch.a:memspi_host_driver.*(.literal .literal.* .text .text.*)
|
||||
@@ -484,6 +485,7 @@ SECTIONS
|
||||
*libarch.a:spi_flash_os_func_app.*(.rodata .rodata.*)
|
||||
*libarch.a:flash_brownout_hook.*(.rodata .rodata.*)
|
||||
*libarch.a:esp_cache.*(.rodata .rodata.*)
|
||||
*libarch.a:cache_esp32.*(.rodata .rodata.*)
|
||||
*libarch.a:cache_utils.*(.rodata .rodata.*)
|
||||
*libarch.a:cache_hal_esp32.*(.rodata .rodata.*)
|
||||
*libarch.a:memspi_host_driver.*(.rodata .rodata.*)
|
||||
|
||||
@@ -53,15 +53,11 @@
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_ESP32_OTA_PARTITION_ENCRYPT
|
||||
# define OTA_ENCRYPT true
|
||||
#else
|
||||
# define OTA_ENCRYPT false
|
||||
# warning "CONFIG_ESP32_OTA_PARTITION_ENCRYPT is deprecated"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESP32_STORAGE_MTD_ENCRYPT
|
||||
# define STORAGE_ENCRYPT true
|
||||
#else
|
||||
# define STORAGE_ENCRYPT false
|
||||
# warning "CONFIG_ESP32_STORAGE_MTD_ENCRYPT is deprecated"
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user