Skip to content

Commit fd0b7f7

Browse files
Jakub Rzeszutkonashif
authored andcommitted
shell: removing legacy shell
Legacy shell removed in order to avoid maintaining two shells systems. All examples and tests have been migrated to the new shell. Signed-off-by: Jakub Rzeszutko <[email protected]>
1 parent bfad972 commit fd0b7f7

File tree

9 files changed

+4
-952
lines changed

9 files changed

+4
-952
lines changed

include/shell/legacy_shell.h

Lines changed: 0 additions & 228 deletions
This file was deleted.

samples/net/wpanusb/prj.conf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ CONFIG_NET_BUF_DATA_SIZE=128
1414
CONFIG_IEEE802154=y
1515
CONFIG_IEEE802154_RAW_MODE=y
1616

17-
CONFIG_CONSOLE_HANDLER=y
18-
CONFIG_CONSOLE_SHELL=y
17+
CONFIG_SHELL=y
1918
CONFIG_KERNEL_SHELL=y
2019

2120
CONFIG_NET_CONFIG_SETTINGS=y
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
CONFIG_PRINTK=y
22
CONFIG_SHELL=y
3-
CONFIG_SERIAL=y
43
CONFIG_KERNEL_SHELL=n
4+
CONFIG_SHELL_BACKEND_SERIAL=y
55
CONFIG_OBJECT_TRACING=y
66
CONFIG_THREAD_MONITOR=y
77
CONFIG_INIT_STACKS=y
88
CONFIG_BOOT_BANNER=n
99
CONFIG_THREAD_NAME=y
1010
CONFIG_LOG=n
1111
CONFIG_SHELL_HISTORY=n
12-
CONFIG_CONSOLE_SHELL_STACKSIZE=1024
12+
CONFIG_SHELL_STACK_SIZE=1024
1313
CONFIG_SHELL_CMD_BUFF_SIZE=128
1414
CONFIG_SHELL_WILDCARD=n
1515
CONFIG_SHELL_FOREGROUND_CMDS=n
1616
CONFIG_SHELL_DYNAMIC_CMDS=n
17+

subsys/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ add_subdirectory(debug)
33
add_subdirectory(logging)
44
add_subdirectory_ifdef(CONFIG_BT bluetooth)
55
add_subdirectory_ifdef(CONFIG_CONSOLE_SUBSYS console)
6-
add_subdirectory_ifdef(CONFIG_CONSOLE_SHELL shell)
76
add_subdirectory_ifdef(CONFIG_SHELL shell)
87
add_subdirectory_ifdef(CONFIG_CPLUSPLUS cpp)
98
add_subdirectory_ifdef(CONFIG_DISK_ACCESS disk)

subsys/mgmt/smp_shell.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#include <zephyr.h>
1313
#include <init.h>
1414
#include "net/buf.h"
15-
#include "shell/legacy_shell.h"
1615
#include "mgmt/mgmt.h"
1716
#include "mgmt/serial.h"
1817
#include "mgmt/buf.h"

subsys/shell/CMakeLists.txt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
zephyr_include_directories_ifdef(CONFIG_CONSOLE_SHELL
2-
${ZEPHYR_BASE}/include/drivers
3-
)
4-
5-
zephyr_sources_ifdef(
6-
CONFIG_CONSOLE_SHELL
7-
shell_service.c
8-
legacy_shell.c
9-
)
10-
111
add_subdirectory(modules)
122

133
zephyr_sources_ifdef(

subsys/shell/Kconfig

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,6 @@
1010

1111
menu "Shell Options"
1212

13-
menuconfig CONSOLE_SHELL
14-
bool "Enable legacy shell [ Experimental ]"
15-
select CONSOLE_HANDLER
16-
select CONSOLE_SUBSYS
17-
help
18-
Shell implementation based on CONSOLE_HANDLER.
19-
20-
21-
if CONSOLE_SHELL
22-
23-
config CONSOLE_SHELL_STACKSIZE
24-
int "Console handler shell stack size"
25-
default 2000
26-
help
27-
Stack size for the console handler shell.
28-
29-
config CONSOLE_SHELL_MAX_CMD_QUEUED
30-
int "Shell's command queue size"
31-
default 3
32-
help
33-
Maximum size of the queue for input commands.
34-
35-
36-
endif
37-
3813
menuconfig SHELL
3914
bool "Enable shell"
4015
select LOG_RUNTIME_FILTERING

0 commit comments

Comments
 (0)