Skip to content

Commit

Permalink
feat: improve Kconfig structure on MM
Browse files Browse the repository at this point in the history
Signed-off-by: Shell <[email protected]>
  • Loading branch information
polarvid committed Dec 3, 2024
1 parent 8fe9e51 commit 8c51bbb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
5 changes: 4 additions & 1 deletion components/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
18 changes: 12 additions & 6 deletions components/mm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 0 additions & 5 deletions src/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8c51bbb

Please sign in to comment.