boards/esp32: Restrict FS options when Flash Encryption is enabled

Some incompatibilities exist between the encryption block of the SPI
Flash peripheral and the algorithms of some file systems. LittleFS is
currently the only supported file system which is known to work
correctly when Flash Encryption is enabled.

Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
This commit is contained in:
Gustavo Henrique Nihei 2021-10-22 15:37:35 -03:00 committed by Xiang Xiao
parent 80da9abd6a
commit 7332053e5c
1 changed files with 12 additions and 0 deletions

View File

@ -32,14 +32,26 @@ choice ESP32_SPIFLASH_FS
bool "SmartFS"
select FS_SMARTFS
select MTD_SMART
depends on !ESP32_SECURE_FLASH_ENC_ENABLED
comment "SmartFS not supported with Flash Encryption"
depends on ESP32_SECURE_FLASH_ENC_ENABLED
config ESP32_SPIFLASH_NXFFS
bool "NXFFS"
select FS_NXFFS
depends on !ESP32_SECURE_FLASH_ENC_ENABLED
comment "NXFFS not supported with Flash Encryption"
depends on ESP32_SECURE_FLASH_ENC_ENABLED
config ESP32_SPIFLASH_SPIFFS
bool "SPIFFS"
select FS_SPIFFS
depends on !ESP32_SECURE_FLASH_ENC_ENABLED
comment "SPIFFS not supported with Flash Encryption"
depends on ESP32_SECURE_FLASH_ENC_ENABLED
config ESP32_SPIFLASH_LITTLEFS
bool "LittleFS"