From 732a3463996513d64949a921f4226a6514545a30 Mon Sep 17 00:00:00 2001 From: arvinzzz Date: Sat, 23 Jul 2022 21:21:59 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20Kconfig=E9=80=89=E9=A1=B9=E8=A7=A3?= =?UTF-8?q?=E8=80=A6=20close:=20#I5I7LX?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: arvinzzz Change-Id: Ieaf3bc6bf0c345a7d7945abb9133bd40fbe9d5b8 --- Kconfig | 19 +++++++++++-------- components/trace/Kconfig | 2 +- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/Kconfig b/Kconfig index 02bdcd39..b1d5b12f 100644 --- a/Kconfig +++ b/Kconfig @@ -357,15 +357,10 @@ config KERNEL_PM_DEBUG help Configuration item for low power frame debug tailoring. -config DEBUG_HOOK - bool - default n - config PLATFORM_EXC - bool "Enable Hook Feature" + bool "Enable Platform Exc Hook" default n depends on KERNEL_EXTKERNEL - select DEBUG_HOOK config KERNEL_LMK bool "Enable Low Memory Killer" @@ -532,14 +527,20 @@ config DEBUG_SEMAPHORE help Answer Y to enable debug semaphore. -source "components/shell/Kconfig" config NET_LWIP_SACK_TFTP bool "Enable Tftp" default y depends on SHELL && NET_LWIP_SACK && DEBUG_VERSION help Answer Y to enable LiteOS support tftp cmd and tftp tool. -osource "net/telnet/Kconfig" + +config DEBUG_HOOK + bool "Enable Hook Framework" + default n + depends on DEBUG_VERSION + help + Enable the kernel hook framework to support customized trace information capture. + config SCHED_DEBUG bool "Enable sched debug Feature" default n @@ -606,6 +607,8 @@ config TASK_MEM_USED default n depends on DEBUG_VERSION && MEM_DEBUG +source "components/shell/Kconfig" + endmenu ######################## config options os drivers ######################## diff --git a/components/trace/Kconfig b/components/trace/Kconfig index 528ec67e..8090fd87 100644 --- a/components/trace/Kconfig +++ b/components/trace/Kconfig @@ -1,7 +1,7 @@ config KERNEL_TRACE bool "Enable Trace Feature" default n - depends on DEBUG_HOOK + select DEBUG_HOOK config TRACE_MSG_EXTEND bool "Enable Record more extended content"