Do not enable subsystem/driver shell modules by default and stop abusing CONFIG_SHELL_MINIMAL, which is internal to the shell subsystem, to decide when to enable a driver shell. The list of shell modules has grown considerably through the years. Enabling CONFIG_SHELL for doing e.g. an interactive debug session leads to a large number of shell modules also being enabled unless explicitly disabled, which again leads to non-negligible increases in RAM/ROM usage. This commit attempts to establish a policy of subsystem/driver shell modules being disabled by default, requiring the user/application to explicitly enable only those needed. Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
43 lines
1.2 KiB
Plaintext
43 lines
1.2 KiB
Plaintext
# Copyright 2020 Peter Bigot Consulting, LLC
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
menuconfig REGULATOR
|
|
bool "Regulator drivers"
|
|
help
|
|
Include drivers for current/voltage regulators in system config
|
|
|
|
if REGULATOR
|
|
|
|
config REGULATOR_THREAD_SAFE_REFCNT
|
|
bool "Thread-safe reference counting"
|
|
depends on MULTITHREADING
|
|
default y
|
|
help
|
|
When enabled, regulator reference counting is thread-safe.
|
|
|
|
config REGULATOR_SHELL
|
|
bool "Regulator shell"
|
|
depends on SHELL
|
|
help
|
|
Enable regulator shell framework, for interacting with regulators via
|
|
the shell interface
|
|
|
|
module = REGULATOR
|
|
module-str = regulator
|
|
source "subsys/logging/Kconfig.template.log_config"
|
|
|
|
source "drivers/regulator/Kconfig.axp192"
|
|
source "drivers/regulator/Kconfig.adp5360"
|
|
source "drivers/regulator/Kconfig.fake"
|
|
source "drivers/regulator/Kconfig.fixed"
|
|
source "drivers/regulator/Kconfig.gpio"
|
|
source "drivers/regulator/Kconfig.max20335"
|
|
source "drivers/regulator/Kconfig.npm1100"
|
|
source "drivers/regulator/Kconfig.npm1300"
|
|
source "drivers/regulator/Kconfig.npm6001"
|
|
source "drivers/regulator/Kconfig.pca9420"
|
|
source "drivers/regulator/Kconfig.rpi_pico"
|
|
source "drivers/regulator/Kconfig.nxp_vref"
|
|
|
|
endif # REGULATOR
|