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:
parent
780c1c28ee
commit
8feab483c9
|
@ -30,7 +30,7 @@ zephyr_sources_ifdef(
|
|||
)
|
||||
|
||||
zephyr_sources_ifdef(
|
||||
CONFIG_LOG
|
||||
CONFIG_SHELL_LOG_BACKEND
|
||||
shell_log_backend.c
|
||||
)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue