1 /*
2  * Copyright (c) 2018 Nordic Semiconductor ASA
3  * Copyright (c) 2016 Intel Corporation
4  *
5  * SPDX-License-Identifier: Apache-2.0
6  */
7 
8 #include "kernel_shell.h"
9 
10 #include <zephyr/version.h>
11 
cmd_kernel_version(const struct shell * sh,size_t argc,char ** argv)12 static int cmd_kernel_version(const struct shell *sh,
13 			      size_t argc, char **argv)
14 {
15 	ARG_UNUSED(argc);
16 	ARG_UNUSED(argv);
17 
18 	shell_print(sh, "Zephyr version %s", KERNEL_VERSION_STRING);
19 	return 0;
20 }
21 
22 KERNEL_CMD_ADD(version, NULL, "Kernel version.", cmd_kernel_version);
23