From e1cfd098a214d39473dd601408d056a184039d58 Mon Sep 17 00:00:00 2001 From: Jeremy Bettis Date: Tue, 4 Feb 2025 10:52:49 -0700 Subject: [PATCH] shell: Fix Kconfig dependencies PR #84651 introduced new shell commands that don't compile if CONFIG_THREAD_MONITOR=n Add THREAD_MONITOR to new shell commands. Signed-off-by: Jeremy Bettis --- subsys/shell/modules/kernel_service/thread/Kconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/subsys/shell/modules/kernel_service/thread/Kconfig b/subsys/shell/modules/kernel_service/thread/Kconfig index 62603195b27..fb56423ce67 100644 --- a/subsys/shell/modules/kernel_service/thread/Kconfig +++ b/subsys/shell/modules/kernel_service/thread/Kconfig @@ -5,6 +5,7 @@ config KERNEL_THREAD_SHELL bool + depends on THREAD_MONITOR help Internal helper macro to determine if the main `thread` command should be compiled. @@ -56,6 +57,7 @@ config KERNEL_THREAD_SHELL_UNWIND config KERNEL_THREAD_SHELL_SUSPEND bool default y + depends on THREAD_MONITOR select KERNEL_THREAD_SHELL help Internal helper macro to compile the 'suspend' subcommand @@ -63,6 +65,7 @@ config KERNEL_THREAD_SHELL_SUSPEND config KERNEL_THREAD_SHELL_RESUME bool default y + depends on THREAD_MONITOR select KERNEL_THREAD_SHELL help Internal helper macro to compile the 'resume' subcommand @@ -70,6 +73,7 @@ config KERNEL_THREAD_SHELL_RESUME config KERNEL_THREAD_SHELL_KILL bool default y + depends on THREAD_MONITOR select KERNEL_THREAD_SHELL help Internal helper macro to compile the 'kill' subcommad