shell: add a shell banner

Give details about running version and add a line about usage.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2018-01-15 09:39:48 -05:00 committed by Anas Nashif
commit dd013691b2
2 changed files with 4 additions and 0 deletions

View file

@ -4,3 +4,4 @@ CONFIG_KERNEL_SHELL=y
CONFIG_OBJECT_TRACING=y
CONFIG_THREAD_MONITOR=y
CONFIG_INIT_STACKS=y
CONFIG_BOOT_BANNER=n

View file

@ -13,6 +13,7 @@
#include <zephyr.h>
#include <stdio.h>
#include <string.h>
#include <version.h>
#include <console/console.h>
#include <misc/printk.h>
@ -368,6 +369,8 @@ static void shell(void *p1, void *p2, void *p3)
ARG_UNUSED(p2);
ARG_UNUSED(p3);
printk("Zephyr Shell, Zephyr version: %s\n", KERNEL_VERSION_STRING);
printk("Type 'help' for a list of available commands\n");
while (1) {
struct console_input *cmd;