shell: Rename shell to legacy_shell

New shell implementation is on the way. For now old one and all
references are kept to be gradually replaced by new shell.

Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
Krzysztof Chruscinski 2018-08-09 08:18:18 +02:00 committed by Anas Nashif
commit 527256501f
29 changed files with 38 additions and 41 deletions

View file

@ -14,7 +14,7 @@
#include <stdlib.h>
#include <string.h>
#include <device.h>
#include <shell/shell.h>
#include <shell/legacy_shell.h>
#include <misc/printk.h>

View file

@ -9,7 +9,7 @@
#include <zephyr.h>
#include <misc/printk.h>
#include <shell/shell.h>
#include <shell/legacy_shell.h>
#include <flash.h>
#include <device.h>
#include <soc.h>

View file

@ -8,7 +8,7 @@
#include <zephyr.h>
#include <flash.h>
#include <misc/printk.h>
#include <shell/shell.h>
#include <shell/legacy_shell.h>
/* Assumption: our devices have less than 64MB of memory */
#define RESERVED_MEM_MAP (CONFIG_SRAM_BASE_ADDRESS + 0x4000000)

View file

@ -11,7 +11,7 @@
#endif
#include <zephyr.h>
#include <shell/shell.h>
#include <shell/legacy_shell.h>
#include <stdio.h>
#include "../../../subsys/net/ip/rpl.h"

View file

@ -12,7 +12,7 @@
#include <zephyr.h>
#include <shell/shell.h>
#include <shell/legacy_shell.h>
#include <net/net_core.h>
#include <net/net_pkt.h>

View file

@ -13,7 +13,7 @@
#include <net_private.h>
#include <device.h>
#include <shell/shell.h>
#include <shell/legacy_shell.h>
#include <usb/usb_device.h>
#include <usb/usb_common.h>

View file

@ -12,7 +12,7 @@
#include <zephyr.h>
#include <misc/printk.h>
#include <shell/shell.h>
#include <shell/legacy_shell.h>
#include <net/net_ip.h>
#include <net/net_core.h>

View file

@ -6,7 +6,7 @@
#include <zephyr.h>
#include <misc/printk.h>
#include <shell/shell.h>
#include <shell/legacy_shell.h>
#include <version.h>
static int shell_cmd_ping(int argc, char *argv[])

View file

@ -12,7 +12,7 @@
#include <stdlib.h>
#include <ctype.h>
#include <zephyr.h>
#include <shell/shell.h>
#include <shell/legacy_shell.h>
#include <misc/printk.h>
#include <settings/settings.h>

View file

@ -28,7 +28,7 @@
#include <bluetooth/rfcomm.h>
#include <bluetooth/sdp.h>
#include <shell/shell.h>
#include <shell/legacy_shell.h>
#include "bt.h"
#include "gatt.h"

View file

@ -10,7 +10,7 @@
*/
#include <zephyr.h>
#include <shell/shell.h>
#include <shell/legacy_shell.h>
#include <misc/printk.h>
#include <stdlib.h>

View file

@ -12,7 +12,7 @@
#include <stdlib.h>
#include <string.h>
#include <zephyr.h>
#include <shell/shell.h>
#include <shell/legacy_shell.h>
#include <misc/printk.h>
#include <bluetooth/hci.h>

View file

@ -10,7 +10,7 @@
*/
#include <zephyr.h>
#include <shell/shell.h>
#include <shell/legacy_shell.h>
#include <misc/printk.h>
#if defined(CONFIG_SOC_FAMILY_NRF)

View file

@ -9,7 +9,7 @@
#include <string.h>
#include <misc/printk.h>
#include <shell/shell.h>
#include <shell/legacy_shell.h>
#include <init.h>
#include <fs.h>
#include <stdio.h>

View file

@ -12,7 +12,7 @@
#include <zephyr.h>
#include <init.h>
#include "net/buf.h"
#include "shell/shell.h"
#include "shell/legacy_shell.h"
#include "mgmt/mgmt.h"
#include "mgmt/serial.h"
#include "mgmt/buf.h"

View file

@ -13,7 +13,7 @@
#include <zephyr.h>
#include <stdlib.h>
#include <stdio.h>
#include <shell/shell.h>
#include <shell/legacy_shell.h>
#include <net/net_if.h>
#include <net/dns_resolve.h>

View file

@ -10,7 +10,7 @@
#include <string.h>
#include <errno.h>
#include <shell/shell.h>
#include <shell/legacy_shell.h>
#include <misc/printk.h>
#include <net/net_core.h>

View file

@ -11,7 +11,7 @@
#include <zephyr.h>
#include <stdio.h>
#include <stdlib.h>
#include <shell/shell.h>
#include <shell/legacy_shell.h>
#include <misc/printk.h>
#include <net/net_if.h>

View file

@ -11,7 +11,7 @@
#include <zephyr.h>
#include <stdio.h>
#include <stdlib.h>
#include <shell/shell.h>
#include <shell/legacy_shell.h>
#include <misc/printk.h>
#include <init.h>

View file

@ -7,7 +7,7 @@
#include <kernel.h>
#include <stdio.h>
#include <misc/printk.h>
#include <shell/shell.h>
#include <shell/legacy_shell.h>
#include <openthread/cli.h>
#include <platform.h>

View file

@ -4,7 +4,7 @@ zephyr_include_directories_ifdef(CONFIG_CONSOLE_SHELL
zephyr_sources(
shell_service.c
shell.c
legacy_shell.c
)
add_subdirectory(modules)

View file

@ -20,7 +20,7 @@
#include <misc/util.h>
#include "mgmt/serial.h"
#include <shell/shell.h>
#include <shell/legacy_shell.h>
#if defined(CONFIG_NATIVE_POSIX_CONSOLE)
#include "drivers/console/native_posix_console.h"
@ -244,20 +244,17 @@ static int cmd_help(int argc, char *argv[])
cmd = get_standalone(cmd_str);
if (cmd) {
return show_cmd_help(cmd, true);
} else {
}
printk("No help found for '%s'\n", cmd_str);
return -EINVAL;
}
} else {
cmd = get_module_cmd(module, cmd_str);
if (cmd) {
return show_cmd_help(cmd, true);
} else {
}
printk("Unknown command '%s'\n", cmd_str);
return -EINVAL;
}
}
}
module_help:
/* help per module */

View file

@ -5,7 +5,7 @@
*/
#include <misc/printk.h>
#include <shell/shell.h>
#include <shell/legacy_shell.h>
#include <init.h>
#include <debug/object_tracing.h>
#include <misc/reboot.h>

View file

@ -13,7 +13,7 @@
*/
#include <misc/printk.h>
#include <shell/shell.h>
#include <shell/legacy_shell.h>
#include <init.h>
#define SHELL_PROMPT "shell> "

View file

@ -11,7 +11,7 @@
#include <misc/printk.h>
#include <zephyr.h>
#include <shell/shell.h>
#include <shell/legacy_shell.h>
void main(void)
{

View file

@ -21,7 +21,7 @@
#include <misc/byteorder.h>
#include <zephyr.h>
#include <shell/shell.h>
#include <shell/legacy_shell.h>
#include <gatt/hrs.h>

View file

@ -12,7 +12,7 @@
#include <zephyr.h>
#include <string.h>
#include <shell/shell.h>
#include <shell/legacy_shell.h>
#if defined(CONFIG_STDOUT_CONSOLE)
#include <stdio.h>

View file

@ -12,7 +12,7 @@
#include <zephyr.h>
#include <ztest.h>
#include <shell/shell.h>
#include <shell/legacy_shell.h>
static void test_shell_exec(const char *line, int result)
{