summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShell <[email protected]>2024-10-14 11:43:19 +0800
committerRbb666 <[email protected]>2025-02-25 11:26:30 +0800
commitd9b36c8d181571922fd339ff2749c5eae62c6704 (patch)
tree8fb7cf0a6dff526897abb36a2f286c314441047d
parent60f7b3affc716b8ba417a088475b1007fbe8af6d (diff)
feat: improve Kconfig structure on MM
Signed-off-by: Shell <[email protected]>
-rw-r--r--components/Kconfig5
-rw-r--r--components/mm/Kconfig18
-rw-r--r--src/Kconfig5
3 files changed, 16 insertions, 12 deletions
diff --git a/components/Kconfig b/components/Kconfig
index c9de0f55a0..1427e1e709 100644
--- a/components/Kconfig
+++ b/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"
diff --git a/components/mm/Kconfig b/components/mm/Kconfig
index 7b2a15ce76..5e18939538 100644
--- a/components/mm/Kconfig
+++ b/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
diff --git a/src/Kconfig b/src/Kconfig
index 8c486701d0..77ec8e7c61 100644
--- a/src/Kconfig
+++ b/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