From cff2bc05e0e58c09a5b657f71b2ef561f6befe80 Mon Sep 17 00:00:00 2001 From: Gustavo Henrique Nihei Date: Thu, 30 Dec 2021 11:56:40 -0300 Subject: [PATCH] esp32c3-devkit: Restrict FS options when Flash Encryption is enabled Signed-off-by: Gustavo Henrique Nihei --- boards/risc-v/esp32c3/esp32c3-devkit/Kconfig | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/boards/risc-v/esp32c3/esp32c3-devkit/Kconfig b/boards/risc-v/esp32c3/esp32c3-devkit/Kconfig index 1712a030b52..feb82692f20 100644 --- a/boards/risc-v/esp32c3/esp32c3-devkit/Kconfig +++ b/boards/risc-v/esp32c3/esp32c3-devkit/Kconfig @@ -84,14 +84,26 @@ choice ESP32C3_SPIFLASH_FS bool "SmartFS" select FS_SMARTFS select MTD_SMART + depends on !ESP32C3_SECURE_FLASH_ENC_ENABLED + + comment "SmartFS not supported with Flash Encryption" + depends on ESP32C3_SECURE_FLASH_ENC_ENABLED config ESP32C3_SPIFLASH_NXFFS bool "NXFFS" select FS_NXFFS + depends on !ESP32C3_SECURE_FLASH_ENC_ENABLED + + comment "NXFFS not supported with Flash Encryption" + depends on ESP32C3_SECURE_FLASH_ENC_ENABLED config ESP32C3_SPIFLASH_SPIFFS bool "SPIFFS" select FS_SPIFFS + depends on !ESP32C3_SECURE_FLASH_ENC_ENABLED + + comment "SPIFFS not supported with Flash Encryption" + depends on ESP32C3_SECURE_FLASH_ENC_ENABLED config ESP32C3_SPIFLASH_LITTLEFS bool "LittleFS"