فهرست منبع

feat: improve Kconfig structure on MM

Signed-off-by: Shell <smokewood@qq.com>
Shell 1 سال پیش
والد
کامیت
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"
 rsource "vbus/Kconfig"
 endif
 endif
 
 
+if ARCH_MM_MMU
+rsource "mm/Kconfig"
+endif
+
 if RT_USING_SMART
 if RT_USING_SMART
 rsource "lwp/Kconfig"
 rsource "lwp/Kconfig"
-rsource "mm/Kconfig"
 endif
 endif
 
 
 rsource "legacy/Kconfig"
 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
         memory into different types of regions. This variable specifies
         the maximum number of regions supported by the system.
         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
 endmenu

+ 0 - 5
src/Kconfig

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