shell: enable modules by default if shell is enabled

If shell is enabled then enable all sub-shells if their dependencies are
satisfied. This was done for some modules and subsystems but was not
consistent.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2020-05-28 10:34:29 -04:00
commit ee985d81aa
10 changed files with 12 additions and 0 deletions

View file

@ -17,6 +17,7 @@ if ADC
config ADC_SHELL config ADC_SHELL
bool "Enable ADC Shell" bool "Enable ADC Shell"
default y
depends on SHELL depends on SHELL
help help
Enable ADC Shell for testing. Enable ADC Shell for testing.

View file

@ -19,6 +19,7 @@ source "subsys/logging/Kconfig.template.log_config"
config CAN_SHELL config CAN_SHELL
bool "Enable CAN Shell" bool "Enable CAN Shell"
default y
depends on SHELL depends on SHELL
help help
Enable CAN Shell for testing. Enable CAN Shell for testing.

View file

@ -19,6 +19,7 @@ source "subsys/logging/Kconfig.template.log_config"
config DAC_SHELL config DAC_SHELL
bool "Enable DAC shell" bool "Enable DAC shell"
default y
depends on SHELL depends on SHELL
help help
Enable DAC related shell commands. Enable DAC related shell commands.

View file

@ -16,6 +16,7 @@ source "subsys/logging/Kconfig.template.log_config"
config EEPROM_SHELL config EEPROM_SHELL
bool "Enable EEPROM shell" bool "Enable EEPROM shell"
default y
depends on SHELL depends on SHELL
help help
Enable the EEPROM shell with EEPROM related commands. Enable the EEPROM shell with EEPROM related commands.

View file

@ -31,6 +31,7 @@ source "subsys/logging/Kconfig.template.log_config"
config FLASH_SHELL config FLASH_SHELL
bool "Enable Flash shell" bool "Enable Flash shell"
depends on SHELL && FLASH_PAGE_LAYOUT depends on SHELL && FLASH_PAGE_LAYOUT
default y
help help
Enable the flash shell with flash related commands such as test, Enable the flash shell with flash related commands such as test,
write, read and erase. write, read and erase.

View file

@ -15,6 +15,7 @@ config HWINFO_HAS_DRIVER
config HWINFO_SHELL config HWINFO_SHELL
bool "Enable HWINFO Shell" bool "Enable HWINFO Shell"
default y
depends on SHELL depends on SHELL
help help
Enable hwinfo Shell for testing. Enable hwinfo Shell for testing.

View file

@ -20,6 +20,7 @@ source "subsys/logging/Kconfig.template.log_config"
config LORA_SHELL config LORA_SHELL
bool "Enable LoRa Shell" bool "Enable LoRa Shell"
default y
depends on SHELL depends on SHELL
help help
Enable LoRa Shell for testing. Enable LoRa Shell for testing.

View file

@ -20,6 +20,7 @@ config PCIE_MSI
config PCIE_SHELL config PCIE_SHELL
bool "Enable PCIe/new PCI Shell" bool "Enable PCIe/new PCI Shell"
default y
depends on SHELL depends on SHELL
help help
Enable commands for debugging PCI(e) using the built-in shell. Enable commands for debugging PCI(e) using the built-in shell.

View file

@ -16,6 +16,7 @@ source "subsys/logging/Kconfig.template.log_config"
config PWM_SHELL config PWM_SHELL
bool "Enable PWM shell" bool "Enable PWM shell"
default y
depends on SHELL depends on SHELL
help help
Enable the PWM related shell commands. Enable the PWM related shell commands.

View file

@ -5,17 +5,20 @@
config KERNEL_SHELL config KERNEL_SHELL
bool "Enable kernel shell" bool "Enable kernel shell"
default y
help help
This shell provides access to basic kernel data like version, uptime This shell provides access to basic kernel data like version, uptime
and other useful information. and other useful information.
config DEVICE_SHELL config DEVICE_SHELL
bool "Enable device shell" bool "Enable device shell"
default y
help help
This shell provides access to basic device data. This shell provides access to basic device data.
config DATE_SHELL config DATE_SHELL
bool "Enable date shell" bool "Enable date shell"
depends on POSIX_CLOCK depends on POSIX_CLOCK
default y
help help
This shell provides access to date and time based on Unix time. This shell provides access to date and time based on Unix time.