shell: add a directory for backends
This change organizes the file structure for the shell. Files implementing backends are moved to a separate folder. Signed-off-by: Jakub Rzeszutko <jakub.rzeszutko@nordicsemi.no>
This commit is contained in:
parent
59d5ef1e24
commit
f29d46ac4a
9 changed files with 29 additions and 27 deletions
|
@ -1,6 +1,7 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
add_subdirectory(modules)
|
add_subdirectory(modules)
|
||||||
|
add_subdirectory(backends)
|
||||||
|
|
||||||
zephyr_sources_ifdef(
|
zephyr_sources_ifdef(
|
||||||
CONFIG_SHELL
|
CONFIG_SHELL
|
||||||
|
@ -11,24 +12,9 @@ zephyr_sources_ifdef(
|
||||||
)
|
)
|
||||||
|
|
||||||
zephyr_sources_ifdef(
|
zephyr_sources_ifdef(
|
||||||
CONFIG_SHELL_BACKEND_SERIAL
|
CONFIG_SHELL_LOG_BACKEND
|
||||||
shell_uart.c
|
shell_log_backend.c
|
||||||
)
|
)
|
||||||
|
|
||||||
zephyr_sources_ifdef(
|
|
||||||
CONFIG_SHELL_BACKEND_DUMMY
|
|
||||||
shell_dummy.c
|
|
||||||
)
|
|
||||||
|
|
||||||
zephyr_sources_ifdef(
|
|
||||||
CONFIG_SHELL_BACKEND_RTT
|
|
||||||
shell_rtt.c
|
|
||||||
)
|
|
||||||
|
|
||||||
zephyr_sources_ifdef(
|
|
||||||
CONFIG_SHELL_BACKEND_TELNET
|
|
||||||
shell_telnet.c
|
|
||||||
)
|
|
||||||
|
|
||||||
zephyr_sources_ifdef(
|
zephyr_sources_ifdef(
|
||||||
CONFIG_SHELL_HELP
|
CONFIG_SHELL_HELP
|
||||||
|
@ -43,19 +29,14 @@ zephyr_sources_ifdef(
|
||||||
zephyr_sources_ifdef(
|
zephyr_sources_ifdef(
|
||||||
CONFIG_SHELL_CMDS
|
CONFIG_SHELL_CMDS
|
||||||
shell_cmds.c
|
shell_cmds.c
|
||||||
)
|
)
|
||||||
|
|
||||||
zephyr_sources_ifdef(
|
zephyr_sources_ifdef(
|
||||||
CONFIG_SHELL_HISTORY
|
CONFIG_SHELL_HISTORY
|
||||||
shell_history.c
|
shell_history.c
|
||||||
)
|
)
|
||||||
|
|
||||||
zephyr_sources_ifdef(
|
|
||||||
CONFIG_SHELL_LOG_BACKEND
|
|
||||||
shell_log_backend.c
|
|
||||||
)
|
|
||||||
|
|
||||||
zephyr_sources_ifdef(
|
zephyr_sources_ifdef(
|
||||||
CONFIG_SHELL_WILDCARD
|
CONFIG_SHELL_WILDCARD
|
||||||
shell_wildcard.c
|
shell_wildcard.c
|
||||||
)
|
)
|
||||||
|
|
|
@ -15,7 +15,7 @@ if SHELL
|
||||||
module = SHELL
|
module = SHELL
|
||||||
module-str = Shell
|
module-str = Shell
|
||||||
source "subsys/logging/Kconfig.template.log_config"
|
source "subsys/logging/Kconfig.template.log_config"
|
||||||
source "subsys/shell/Kconfig.backends"
|
source "subsys/shell/backends/Kconfig.backends"
|
||||||
|
|
||||||
config SHELL_MINIMAL
|
config SHELL_MINIMAL
|
||||||
bool "Default config to reduce flash and memory requirements"
|
bool "Default config to reduce flash and memory requirements"
|
||||||
|
|
21
subsys/shell/backends/CMakeLists.txt
Normal file
21
subsys/shell/backends/CMakeLists.txt
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
zephyr_sources_ifdef(
|
||||||
|
CONFIG_SHELL_BACKEND_SERIAL
|
||||||
|
shell_uart.c
|
||||||
|
)
|
||||||
|
|
||||||
|
zephyr_sources_ifdef(
|
||||||
|
CONFIG_SHELL_BACKEND_DUMMY
|
||||||
|
shell_dummy.c
|
||||||
|
)
|
||||||
|
|
||||||
|
zephyr_sources_ifdef(
|
||||||
|
CONFIG_SHELL_BACKEND_RTT
|
||||||
|
shell_rtt.c
|
||||||
|
)
|
||||||
|
|
||||||
|
zephyr_sources_ifdef(
|
||||||
|
CONFIG_SHELL_BACKEND_TELNET
|
||||||
|
shell_telnet.c
|
||||||
|
)
|
Loading…
Add table
Add a link
Reference in a new issue