Просмотр исходного кода

feat: improve Kconfig structure on MM

Signed-off-by: Shell <smokewood@qq.com>
Shell 6 месяцев назад
Родитель
Сommit
d9b36c8d18
3 измененных файлов с 16 добавлено и 12 удалено
  1. 4 1
      components/Kconfig
  2. 12 6
      components/mm/Kconfig
  3. 0 5
      src/Kconfig

+ 4 - 1
components/Kconfig

@@ -40,9 +40,12 @@ rsource "utilities/Kconfig"
 rsource "vbus/Kconfig"
 endif
 
+if ARCH_MM_MMU
+rsource "mm/Kconfig"
+endif
+
 if RT_USING_SMART
 rsource "lwp/Kconfig"
-rsource "mm/Kconfig"
 endif
 
 rsource "legacy/Kconfig"

+ 12 - 6
components/mm/Kconfig

@@ -35,12 +35,18 @@ config RT_INIT_MEMORY_REGIONS
         memory into different types of regions. This variable specifies
         the maximum number of regions supported by the system.
 
-config RT_DEBUGGING_ALIASING
-    bool "Using aliasing paging debugger"
-    default n
+menu "Debugging"
+    config RT_DEBUGGING_ALIASING
+        bool "Using aliasing paging debugger"
+        default n
 
-config RT_DEBUGGING_PAGE_POISON
-    bool "Using page poisoner to detect illegal usage"
-    default n
+    config RT_DEBUGING_PAGE_LEAK
+        bool "Using page leaking tracer"
+        default n
+
+    config RT_DEBUGGING_PAGE_POISON
+        bool "Using page poisoner to detect illegal usage"
+        default n
+endmenu
 
 endmenu

+ 0 - 5
src/Kconfig

@@ -224,11 +224,6 @@ menuconfig RT_USING_DEBUG
             bool "Enable debugging of components automatic initialization"
             default n
 
-        config RT_DEBUGING_PAGE_LEAK
-            bool "Enable page leaking tracer"
-            depends on ARCH_MM_MMU
-            default n
-
         config RT_DEBUGING_SPINLOCK
             bool "Enable spinlock debugging"
             depends on RT_USING_SMP