You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/12/30 04:35:54 UTC
[incubator-nuttx] 04/04: boards/esp32: Restrict FS options when Flash Encryption is enabled
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 7332053e5cee5c1cb17b53960d51897501e60584
Author: Gustavo Henrique Nihei <gu...@espressif.com>
AuthorDate: Fri Oct 22 15:37:35 2021 -0300
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 <gu...@espressif.com>
---
boards/xtensa/esp32/common/Kconfig | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/boards/xtensa/esp32/common/Kconfig b/boards/xtensa/esp32/common/Kconfig
index 72b7913..7448a6d 100644
--- a/boards/xtensa/esp32/common/Kconfig
+++ b/boards/xtensa/esp32/common/Kconfig
@@ -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"