From ee985d81aa3481b3e1b75e07741ba041ae452196 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Thu, 28 May 2020 10:34:29 -0400 Subject: [PATCH] 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 --- drivers/adc/Kconfig | 1 + drivers/can/Kconfig | 1 + drivers/dac/Kconfig | 1 + drivers/eeprom/Kconfig | 1 + drivers/flash/Kconfig | 1 + drivers/hwinfo/Kconfig | 1 + drivers/lora/Kconfig | 1 + drivers/pcie/Kconfig | 1 + drivers/pwm/Kconfig | 1 + subsys/shell/modules/Kconfig | 3 +++ 10 files changed, 12 insertions(+) diff --git a/drivers/adc/Kconfig b/drivers/adc/Kconfig index 90bb835bcb3..25dae0a4c35 100644 --- a/drivers/adc/Kconfig +++ b/drivers/adc/Kconfig @@ -17,6 +17,7 @@ if ADC config ADC_SHELL bool "Enable ADC Shell" + default y depends on SHELL help Enable ADC Shell for testing. diff --git a/drivers/can/Kconfig b/drivers/can/Kconfig index 2a6f747f2ea..69d40532f97 100644 --- a/drivers/can/Kconfig +++ b/drivers/can/Kconfig @@ -19,6 +19,7 @@ source "subsys/logging/Kconfig.template.log_config" config CAN_SHELL bool "Enable CAN Shell" + default y depends on SHELL help Enable CAN Shell for testing. diff --git a/drivers/dac/Kconfig b/drivers/dac/Kconfig index 71ac55747e5..d446a9b3048 100644 --- a/drivers/dac/Kconfig +++ b/drivers/dac/Kconfig @@ -19,6 +19,7 @@ source "subsys/logging/Kconfig.template.log_config" config DAC_SHELL bool "Enable DAC shell" + default y depends on SHELL help Enable DAC related shell commands. diff --git a/drivers/eeprom/Kconfig b/drivers/eeprom/Kconfig index e63973c8ed1..8155def8cd5 100644 --- a/drivers/eeprom/Kconfig +++ b/drivers/eeprom/Kconfig @@ -16,6 +16,7 @@ source "subsys/logging/Kconfig.template.log_config" config EEPROM_SHELL bool "Enable EEPROM shell" + default y depends on SHELL help Enable the EEPROM shell with EEPROM related commands. diff --git a/drivers/flash/Kconfig b/drivers/flash/Kconfig index 4c84c8f09dd..7aab2abf43e 100644 --- a/drivers/flash/Kconfig +++ b/drivers/flash/Kconfig @@ -31,6 +31,7 @@ source "subsys/logging/Kconfig.template.log_config" config FLASH_SHELL bool "Enable Flash shell" depends on SHELL && FLASH_PAGE_LAYOUT + default y help Enable the flash shell with flash related commands such as test, write, read and erase. diff --git a/drivers/hwinfo/Kconfig b/drivers/hwinfo/Kconfig index 82be51b664b..51ccf90bf9c 100644 --- a/drivers/hwinfo/Kconfig +++ b/drivers/hwinfo/Kconfig @@ -15,6 +15,7 @@ config HWINFO_HAS_DRIVER config HWINFO_SHELL bool "Enable HWINFO Shell" + default y depends on SHELL help Enable hwinfo Shell for testing. diff --git a/drivers/lora/Kconfig b/drivers/lora/Kconfig index c0d24f653d2..ac8ecbf9dfe 100644 --- a/drivers/lora/Kconfig +++ b/drivers/lora/Kconfig @@ -20,6 +20,7 @@ source "subsys/logging/Kconfig.template.log_config" config LORA_SHELL bool "Enable LoRa Shell" + default y depends on SHELL help Enable LoRa Shell for testing. diff --git a/drivers/pcie/Kconfig b/drivers/pcie/Kconfig index 2c531fa5dbc..9a1d43598e2 100644 --- a/drivers/pcie/Kconfig +++ b/drivers/pcie/Kconfig @@ -20,6 +20,7 @@ config PCIE_MSI config PCIE_SHELL bool "Enable PCIe/new PCI Shell" + default y depends on SHELL help Enable commands for debugging PCI(e) using the built-in shell. diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig index acdc3508fdc..8d54e30199c 100644 --- a/drivers/pwm/Kconfig +++ b/drivers/pwm/Kconfig @@ -16,6 +16,7 @@ source "subsys/logging/Kconfig.template.log_config" config PWM_SHELL bool "Enable PWM shell" + default y depends on SHELL help Enable the PWM related shell commands. diff --git a/subsys/shell/modules/Kconfig b/subsys/shell/modules/Kconfig index f0060ad5e58..0f277e15ed8 100644 --- a/subsys/shell/modules/Kconfig +++ b/subsys/shell/modules/Kconfig @@ -5,17 +5,20 @@ config KERNEL_SHELL bool "Enable kernel shell" + default y 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 help This shell provides access to basic device data. config DATE_SHELL bool "Enable date shell" depends on POSIX_CLOCK + default y help This shell provides access to date and time based on Unix time.