zephyr/subsys/shell/modules/kernel_service/thread/Kconfig
Yong Cong Sin 83212147b2 shell: kernel_service: reorg the commands
Split the `kernel_service.c` into multiple subcommand files,
each file would register with the main `kernel` cmd based on
the dependencies in Kconfig/CMakeLists.txt.

This greatly reduces the number of precompiler directives.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
2024-09-17 20:12:33 -04:00

55 lines
1.2 KiB
Plaintext

# Kernel thread configuration options
# Copyright (c) 2024 Meta Platforms
# SPDX-License-Identifier: Apache-2.0
config KERNEL_THREAD_SHELL
bool
help
Internal helper macro to determine if the main `thread` command
should be compiled.
config KERNEL_THREAD_SHELL_LIST
bool
default y
depends on INIT_STACKS
depends on THREAD_MONITOR
depends on THREAD_STACK_INFO
select KERNEL_THREAD_SHELL
help
Internal helper macro to compile the `list` subcommand
config KERNEL_THREAD_SHELL_STACKS
bool
default y
depends on INIT_STACKS
depends on THREAD_MONITOR
depends on THREAD_STACK_INFO
select KERNEL_THREAD_SHELL
help
Internal helper macro to compile the `stacks` subcommand
config KERNEL_THREAD_SHELL_MASK
bool
default y
depends on SCHED_CPU_MASK
select KERNEL_THREAD_SHELL
help
Internal helper macro to compile the `mask` subcommand
config KERNEL_THREAD_SHELL_PIN
bool
default y
depends on SCHED_CPU_MASK
select KERNEL_THREAD_SHELL
help
Internal helper macro to compile the `pin` subcommand
config KERNEL_THREAD_SHELL_UNWIND
bool
default y
depends on ARCH_STACKWALK
select KERNEL_THREAD_SHELL
help
Internal helper macro to compile the `unwind` subcommand