From 6c6c5f5d35de17a8cb60769d7ff11c124bc18df8 Mon Sep 17 00:00:00 2001 From: Shell Date: Mon, 18 Nov 2024 16:55:39 +0800 Subject: [PATCH] feat: Kconfig: collecting some config to sub-menu To improve the readability of the menuconfig. Signed-off-by: Shell --- components/dfs/Kconfig | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/components/dfs/Kconfig b/components/dfs/Kconfig index 61453895c95..2c7ae22267f 100644 --- a/components/dfs/Kconfig +++ b/components/dfs/Kconfig @@ -169,14 +169,16 @@ if RT_USING_DFS_V1 default n endif - config RT_USING_DFS_ROMFS + menuconfig RT_USING_DFS_ROMFS bool "Enable ReadOnly file system on flash" default n - config RT_USING_DFS_ROMFS_USER_ROOT - bool "Use user's romfs root" - depends on RT_USING_DFS_ROMFS - default n + if RT_USING_DFS_ROMFS + config RT_USING_DFS_ROMFS_USER_ROOT + bool "Use user's romfs root" + depends on RT_USING_DFS_V1 + default n + endif if RT_USING_SMART config RT_USING_DFS_PTYFS