summaryrefslogtreecommitdiff
path: root/bl2
diff options
context:
space:
mode:
authorJuan Castillo <juan.castillo@arm.com>2014-06-30 11:41:46 +0100
committerDan Handley <dan.handley@arm.com>2014-07-25 15:02:08 +0100
commitaaa3e722c0016c7958e68dbbe0e2a3e790afb610 (patch)
tree05f7800803dfa71eb6e0f51b838b01aaafa86176 /bl2
parent2d4aceaffa2e6e6330fbfcb52399ba18fbf20929 (diff)
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
Diffstat (limited to 'bl2')
-rw-r--r--bl2/bl2_main.c3
1 files changed, 2 insertions, 1 deletions
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