Skip to content

Commit

Permalink
shell: enable modules by default if shell is enabled
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
nashif committed Jun 25, 2020
1 parent 7c85f4b commit ee985d8
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/adc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ if ADC

config ADC_SHELL
bool "Enable ADC Shell"
default y
depends on SHELL
help
Enable ADC Shell for testing.
Expand Down
1 change: 1 addition & 0 deletions drivers/can/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions drivers/dac/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions drivers/eeprom/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions drivers/flash/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions drivers/hwinfo/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions drivers/lora/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions drivers/pcie/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions drivers/pwm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 3 additions & 0 deletions subsys/shell/modules/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit ee985d8

Please sign in to comment.