Commit bc6da1c3 authored by Jakub Rzeszutko's avatar Jakub Rzeszutko Committed by Carles Cufi
Browse files

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: default avatarJakub Rzeszutko <jakub.rzeszutko@nordicsemi.no>
parent dc8bbce3
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
CONFIG_PRINTK=y
CONFIG_SHELL=y
CONFIG_SERIAL=y
CONFIG_LOG=y
CONFIG_LOG_BACKEND_UART=n
CONFIG_KERNEL_SHELL=y
+4 −0
Original line number Diff line number Diff line
@@ -16,6 +16,10 @@ zephyr_sources_ifdef(
  shell_fprintf.c
  shell_utils.c
  shell_ops.c
  )

zephyr_sources_ifdef(
  CONFIG_SHELL_BACKEND_SERIAL
  shell_uart.c
  )

+1 −1
Original line number Diff line number Diff line
@@ -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"
+25 −0
Original line number Diff line number Diff line
# Kconfig.backends - Shell badckends configuration options

#
# Copyright (c) 2018 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: Apache-2.0
#

menuconfig SHELL_BACKENDS
	bool "Enable shell backends"
	default y
	help
	  Enable shell backends.

if SHELL_BACKENDS

config SHELL_BACKEND_SERIAL
	bool "Enable serial backends."
	default y
	select SERIAL
	help
	  Enable serial backends.

endif # SHELL_BACKENDS