zephyr/subsys/shell/modules/kernel_service/CMakeLists.txt
Tomasz Bursztyka b4f9242a6a shell: kernel: Add a panic command
For testing purposes only. Testing the fatal error handler or
a coredump backend. Or just out of curiosity.

Signed-off-by: Tomasz Bursztyka <tobu@bang-olufsen.dk>
2025-03-29 07:44:11 -04:00

24 lines
514 B
CMake

# Copyright (c) 2024 Meta Platforms
# SPDX-License-Identifier: Apache-2.0
zephyr_sources(
# Main command
kernel_shell.c
# Subcommand starts here
cycles.c
sleep.c
uptime.c
version.c
)
# Conditional subcommands
zephyr_sources_ifdef(CONFIG_SYS_HEAP_RUNTIME_STATS heap.c)
zephyr_sources_ifdef(CONFIG_LOG_RUNTIME_FILTERING log-level.c)
zephyr_sources_ifdef(CONFIG_REBOOT reboot.c)
zephyr_sources_ifdef(CONFIG_KERNEL_SHELL_PANIC_CMD panic.c)
add_subdirectory_ifdef(CONFIG_KERNEL_THREAD_SHELL thread)