Skip to content

Commit d9b36c8

Browse files
polarvidRbb666
authored andcommitted
feat: improve Kconfig structure on MM
Signed-off-by: Shell <[email protected]>
1 parent 60f7b3a commit d9b36c8

File tree

3 files changed

+16
-12
lines changed

3 files changed

+16
-12
lines changed

Diff for: components/Kconfig

+4-1
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,12 @@ rsource "utilities/Kconfig"
4040
rsource "vbus/Kconfig"
4141
endif
4242

43+
if ARCH_MM_MMU
44+
rsource "mm/Kconfig"
45+
endif
46+
4347
if RT_USING_SMART
4448
rsource "lwp/Kconfig"
45-
rsource "mm/Kconfig"
4649
endif
4750

4851
rsource "legacy/Kconfig"

Diff for: components/mm/Kconfig

+12-6
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,18 @@ config RT_INIT_MEMORY_REGIONS
3535
memory into different types of regions. This variable specifies
3636
the maximum number of regions supported by the system.
3737

38-
config RT_DEBUGGING_ALIASING
39-
bool "Using aliasing paging debugger"
40-
default n
38+
menu "Debugging"
39+
config RT_DEBUGGING_ALIASING
40+
bool "Using aliasing paging debugger"
41+
default n
4142

42-
config RT_DEBUGGING_PAGE_POISON
43-
bool "Using page poisoner to detect illegal usage"
44-
default n
43+
config RT_DEBUGING_PAGE_LEAK
44+
bool "Using page leaking tracer"
45+
default n
46+
47+
config RT_DEBUGGING_PAGE_POISON
48+
bool "Using page poisoner to detect illegal usage"
49+
default n
50+
endmenu
4551

4652
endmenu

Diff for: src/Kconfig

-5
Original file line numberDiff line numberDiff line change
@@ -224,11 +224,6 @@ menuconfig RT_USING_DEBUG
224224
bool "Enable debugging of components automatic initialization"
225225
default n
226226

227-
config RT_DEBUGING_PAGE_LEAK
228-
bool "Enable page leaking tracer"
229-
depends on ARCH_MM_MMU
230-
default n
231-
232227
config RT_DEBUGING_SPINLOCK
233228
bool "Enable spinlock debugging"
234229
depends on RT_USING_SMP

0 commit comments

Comments
 (0)