shell: fix shell_log_backend dependency

Fixed case when shell_log_backend.c was included even though
shell was disabled.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Krzysztof Chruscinski 2018-09-20 14:45:56 +02:00 committed by Anas Nashif
parent 780c1c28ee
commit 8feab483c9
2 changed files with 6 additions and 1 deletions

View file

@ -30,7 +30,7 @@ zephyr_sources_ifdef(
)
zephyr_sources_ifdef(
CONFIG_LOG
CONFIG_SHELL_LOG_BACKEND
shell_log_backend.c
)

View file

@ -170,6 +170,11 @@ config SHELL_CMDS_RESIZE
must be called to ensure correct text display on the terminal screen.
Resize command can be turned off to safe code memory (~0,5k).
config SHELL_LOG_BACKEND
bool
default y if LOG
default n if !LOG
endif #SHELL
endmenu