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:
parent
0572fe99ec
commit
dd013691b2
2 changed files with 4 additions and 0 deletions
|
@ -4,3 +4,4 @@ CONFIG_KERNEL_SHELL=y
|
|||
CONFIG_OBJECT_TRACING=y
|
||||
CONFIG_THREAD_MONITOR=y
|
||||
CONFIG_INIT_STACKS=y
|
||||
CONFIG_BOOT_BANNER=n
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue