zephyr/subsys/shell/modules/Kconfig
Jack Rosenthal ea9866dc86 shell: add an option for minimal default configuration
The default shell configuration has heavy flash and memory requirements,
requiring project maintainers to set many configuration options to "n"
to keep flash and memory requirements within reason.

This adds a new configuration option, CONFIG_SHELL_MINIMAL, which will
disable flash and memory heavy options by default, and allow project
maintainers to select/imply only the options they want.

On a quick test from an ARM board I'm working on, enabling this option
cut flash space requirements by ~8 KB, and memory requirements by ~1 KB.

Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
2021-02-27 10:26:33 +01:00

29 lines
689 B
Plaintext

# Shell configuration options
# Copyright (c) 2016 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
config KERNEL_SHELL
bool "Enable kernel shell"
default y if !SHELL_MINIMAL
imply INIT_STACKS
imply THREAD_MONITOR
imply THREAD_NAME
imply THREAD_STACK_INFO
help
This shell provides access to basic kernel data like version, uptime
and other useful information.
config DEVICE_SHELL
bool "Enable device shell"
default y if !SHELL_MINIMAL
help
This shell provides access to basic device data.
config DATE_SHELL
bool "Enable date shell"
depends on POSIX_CLOCK
default y if !SHELL_MINIMAL
help
This shell provides access to date and time based on Unix time.