From befb8a48623bff9a7dee499bb2221133ebfba00e Mon Sep 17 00:00:00 2001 From: Shell Date: Mon, 14 Oct 2024 11:43:19 +0800 Subject: [PATCH] feat: improve Kconfig structure on MM Signed-off-by: Shell --- components/Kconfig | 5 ++++- components/mm/Kconfig | 18 ++++++++++++------ src/Kconfig | 5 ----- 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/components/Kconfig b/components/Kconfig index c9de0f55a0f..1427e1e7090 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 7b2a15ce76f..5e189395386 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 7e7c1020b62..e500642e566 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