From aaa3e722c0016c7958e68dbbe0e2a3e790afb610 Mon Sep 17 00:00:00 2001 From: Juan Castillo Date: Mon, 30 Jun 2014 11:41:46 +0100 Subject: Add support for printing version at runtime Print out Trusted Firmware version at runtime at each BL stage. Message consists of TF version as defined statically in the Makefile (e.g. v0.4), build mode (debug|release) and a customizable build string: 1. By defining BUILD_STRING in command line when building TF 2. Default string is git commit ID 3. Empty if git meta-data is not available Fixes ARM-software/tf-issues#203 Change-Id: I5c5ba438f66ab68810427d76b49c5b9177a957d6 --- bl2/bl2_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bl2') diff --git a/bl2/bl2_main.c b/bl2/bl2_main.c index 70b688a6..ca838426 100644 --- a/bl2/bl2_main.c +++ b/bl2/bl2_main.c @@ -195,7 +195,8 @@ void bl2_main(void) /* Perform platform setup in BL2 */ bl2_platform_setup(); - tf_printf("BL2 %s\n\r", build_message); + tf_printf("BL2 %s\n", version_string); + tf_printf("BL2 %s\n", build_message); /* * Load the subsequent bootloader images -- cgit v1.2.3