kernel: fix boot banner option
Add missing option for adding time stamp to boot banner. Change-Id: Idda61feeef4a89c1aa8bb7e81b52272babeb1efe Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
a04e7b653b
commit
a13b04e022
2 changed files with 10 additions and 3 deletions
|
@ -23,10 +23,17 @@ config BOOT_BANNER
|
|||
prompt "Boot banner"
|
||||
default n
|
||||
select PRINTK
|
||||
depends on EARLY_CONSOLE
|
||||
help
|
||||
This option outputs a banner to the console device during boot up. It
|
||||
also embeds a date & time stamp in the kernel and in each USAP image.
|
||||
|
||||
config BUILD_TIMESTAMP
|
||||
bool
|
||||
prompt "Build Timestamp"
|
||||
help
|
||||
Build timestamp and add it to the boot banner.
|
||||
|
||||
config INT_LATENCY_BENCHMARK
|
||||
bool
|
||||
prompt "Interrupt latency metrics [EXPERIMENTAL]"
|
||||
|
|
|
@ -41,14 +41,14 @@ const char * const build_timestamp = BUILD_TIMESTAMP;
|
|||
|
||||
/* boot banner items */
|
||||
|
||||
#define BOOT_BANNER "****** BOOTING ZEPHYR OS ******"
|
||||
#define BOOT_BANNER "BOOTING ZEPHYR OS"
|
||||
|
||||
#if !defined(CONFIG_BOOT_BANNER)
|
||||
#define PRINT_BOOT_BANNER() do { } while (0)
|
||||
#elif !defined(CONFIG_BUILD_TIMESTAMP)
|
||||
#define PRINT_BOOT_BANNER() printk(BOOT_BANNER "\n")
|
||||
#define PRINT_BOOT_BANNER() printk("***** " BOOT_BANNER " *****\n")
|
||||
#else
|
||||
#define PRINT_BOOT_BANNER() printk(BOOT_BANNER " %s\n", build_timestamp)
|
||||
#define PRINT_BOOT_BANNER() printk("***** " BOOT_BANNER " - %s *****\n", build_timestamp)
|
||||
#endif
|
||||
|
||||
/* boot time measurement items */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue