Skip to content

Commit a636604

Browse files
Mahavir JainAnas Nashif
authored andcommitted
kernel: include kernel version in boot banner
Make boot banner more informative by adding kernel version string Change-Id: I21865ea3a001fba2c30fe58e6e052aae59fef3e2 Signed-off-by: Mahavir Jain <[email protected]>
1 parent 5387413 commit a636604

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kernel/unified/init.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include <init.h>
3434
#include <linker-defs.h>
3535
#include <ksched.h>
36+
#include <version.h>
3637

3738
/* kernel build timestamp items */
3839

@@ -44,7 +45,7 @@ const char * const build_timestamp = BUILD_TIMESTAMP;
4445

4546
/* boot banner items */
4647

47-
#define BOOT_BANNER "BOOTING ZEPHYR OS"
48+
#define BOOT_BANNER "BOOTING ZEPHYR OS v" KERNEL_VERSION_STRING
4849

4950
#if !defined(CONFIG_BOOT_BANNER)
5051
#define PRINT_BOOT_BANNER() do { } while (0)

0 commit comments

Comments
 (0)