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:
Anas Nashif 2016-03-13 19:08:17 -04:00
commit a13b04e022
2 changed files with 10 additions and 3 deletions

View file

@ -23,10 +23,17 @@ config BOOT_BANNER
prompt "Boot banner" prompt "Boot banner"
default n default n
select PRINTK select PRINTK
depends on EARLY_CONSOLE
help help
This option outputs a banner to the console device during boot up. It 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. 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 config INT_LATENCY_BENCHMARK
bool bool
prompt "Interrupt latency metrics [EXPERIMENTAL]" prompt "Interrupt latency metrics [EXPERIMENTAL]"

View file

@ -41,14 +41,14 @@ const char * const build_timestamp = BUILD_TIMESTAMP;
/* boot banner items */ /* boot banner items */
#define BOOT_BANNER "****** BOOTING ZEPHYR OS ******" #define BOOT_BANNER "BOOTING ZEPHYR OS"
#if !defined(CONFIG_BOOT_BANNER) #if !defined(CONFIG_BOOT_BANNER)
#define PRINT_BOOT_BANNER() do { } while (0) #define PRINT_BOOT_BANNER() do { } while (0)
#elif !defined(CONFIG_BUILD_TIMESTAMP) #elif !defined(CONFIG_BUILD_TIMESTAMP)
#define PRINT_BOOT_BANNER() printk(BOOT_BANNER "\n") #define PRINT_BOOT_BANNER() printk("***** " BOOT_BANNER " *****\n")
#else #else
#define PRINT_BOOT_BANNER() printk(BOOT_BANNER " %s\n", build_timestamp) #define PRINT_BOOT_BANNER() printk("***** " BOOT_BANNER " - %s *****\n", build_timestamp)
#endif #endif
/* boot time measurement items */ /* boot time measurement items */