Skip to content

Commit c0c8952

Browse files
henrikbrixandersencarlescufi
authored andcommitted
shell: do not enable subsystem/driver shell modules by default
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 <[email protected]>
1 parent f345378 commit c0c8952

File tree

31 files changed

+3
-28
lines changed

31 files changed

+3
-28
lines changed

drivers/adc/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ if ADC
1717

1818
config ADC_SHELL
1919
bool "ADC Shell"
20-
default y
2120
depends on SHELL
2221
help
2322
Enable ADC Shell for testing.

drivers/audio/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ config AUDIO_CODEC_INIT_PRIORITY
2727

2828
config AUDIO_CODEC_SHELL
2929
bool "Audio Codec shell"
30-
default y
3130
depends on SHELL
3231
help
3332
Enable the Audio Codec shell with Audio Codec related commands.

drivers/can/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ config CAN_INIT_PRIORITY
2525

2626
config CAN_SHELL
2727
bool "CAN shell"
28-
default y
2928
depends on SHELL
3029
select POLL
3130
help

drivers/clock_control/Kconfig.nrf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ if CLOCK_CONTROL_NRF
2525
config CLOCK_CONTROL_NRF_SHELL
2626
bool "Shell commands"
2727
depends on SHELL
28-
default y if SHELL
2928

3029
choice CLOCK_CONTROL_NRF_SOURCE
3130
prompt "32KHz clock source"

drivers/dac/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ source "subsys/logging/Kconfig.template.log_config"
1919

2020
config DAC_SHELL
2121
bool "DAC shell"
22-
default y
2322
depends on SHELL
2423
help
2524
Enable DAC related shell commands.

drivers/edac/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ config EDAC_ERROR_INJECT
1919
config EDAC_SHELL
2020
bool "EDAC Shell"
2121
depends on SHELL
22-
default y if SHELL
2322
help
2423
Enable EDAC shell for debugging EDAC.
2524

drivers/eeprom/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ config EEPROM_INIT_PRIORITY
2424

2525
config EEPROM_SHELL
2626
bool "EEPROM shell"
27-
default y
2827
depends on SHELL
2928
help
3029
Enable the EEPROM shell with EEPROM related commands.

drivers/flash/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ config FLASH_SHELL
5353
bool "Flash shell"
5454
depends on SHELL && FLASH_PAGE_LAYOUT
5555
select MPU_ALLOW_FLASH_WRITE if ARM_MPU
56-
default y
5756
help
5857
Enable the flash shell with flash related commands such as test,
5958
write, read and erase.

drivers/hwinfo/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ source "subsys/logging/Kconfig.template.log_config"
1616

1717
config HWINFO_SHELL
1818
bool "HWINFO Shell"
19-
default y
2019
depends on SHELL
2120
help
2221
Enable hwinfo Shell for testing.

drivers/i2c/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ if I2C
1515

1616
config I2C_SHELL
1717
bool "I2C Shell"
18-
default y
1918
depends on SHELL
2019
help
2120
Enable I2C Shell.

0 commit comments

Comments
 (0)