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 f74c6f7f5b21ef5927dfd802422b2d3a8805a239
Author: Gustavo Henrique Nihei <[email protected]>
AuthorDate: Fri Oct 22 12:05:13 2021 -0300

    boards/esp32: Transform SPI Flash FS deps into reverse deps
    
    Currently, when no file system is selected, the "choice" lists zero
    entries, which is very confusing to the user. To handle this, the
    "choice" options have their dependencies ("depends on") transformed into
    reverse dependencies ("select").
    
    Signed-off-by: Gustavo Henrique Nihei <[email protected]>
---
 boards/xtensa/esp32/common/Kconfig | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/boards/xtensa/esp32/common/Kconfig 
b/boards/xtensa/esp32/common/Kconfig
index c7e26a3..3051690 100644
--- a/boards/xtensa/esp32/common/Kconfig
+++ b/boards/xtensa/esp32/common/Kconfig
@@ -30,19 +30,19 @@ choice ESP32_SPIFLASH_FS
 
        config ESP32_SPIFLASH_SMARTFS
                bool "SmartFS"
-               depends on FS_SMARTFS
+               select FS_SMARTFS
 
        config ESP32_SPIFLASH_NXFFS
                bool "NXFFS"
-               depends on FS_NXFFS
+               select FS_NXFFS
 
        config ESP32_SPIFLASH_SPIFFS
                bool "SPIFFS"
-               depends on FS_SPIFFS
+               select FS_SPIFFS
 
        config ESP32_SPIFLASH_LITTLEFS
                bool "LittleFS"
-               depends on FS_LITTLEFS
+               select FS_LITTLEFS
 
 endchoice
 

Reply via email to