shell: Enable backends via Kconfig file

Added functionality to enable active shell backends via Kconfig
file. When there will be more backends implemented user will
have an option to select only required ones.

It is no longer needed to select SERIAL in prj.conf.

Fixes #10190

Signed-off-by: Jakub Rzeszutko <jakub.rzeszutko@nordicsemi.no>
This commit is contained in:
Jakub Rzeszutko 2018-10-04 15:17:00 +02:00 committed by Carles Cufí
commit bc6da1c34a
4 changed files with 30 additions and 2 deletions

View file

@ -38,13 +38,13 @@ menuconfig SHELL
bool "Enable shell"
select LOG_RUNTIME_FILTERING
select POLL
depends on SERIAL
if SHELL
module = SHELL
module-str = Shell
source "subsys/logging/Kconfig.template.log_config"
source "subsys/shell/Kconfig.backends"
config SHELL_STACK_SIZE
int "Shell thread stack size"