diff options
author | Juan Castillo <juan.castillo@arm.com> | 2014-06-30 11:41:46 +0100 |
---|---|---|
committer | Dan Handley <dan.handley@arm.com> | 2014-07-25 15:02:08 +0100 |
commit | aaa3e722c0016c7958e68dbbe0e2a3e790afb610 (patch) | |
tree | 05f7800803dfa71eb6e0f51b838b01aaafa86176 /bl1/bl1_main.c | |
parent | 2d4aceaffa2e6e6330fbfcb52399ba18fbf20929 (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 'bl1/bl1_main.c')
-rw-r--r-- | bl1/bl1_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bl1/bl1_main.c b/bl1/bl1_main.c index 47ca546d..c6f2caad 100644 --- a/bl1/bl1_main.c +++ b/bl1/bl1_main.c @@ -130,7 +130,8 @@ void bl1_main(void) /* Announce our arrival */ tf_printf(FIRMWARE_WELCOME_STR); - tf_printf("%s\n\r", build_message); + tf_printf("%s\n", version_string); + tf_printf("%s\n", build_message); SET_PARAM_HEAD(&bl2_image_info, PARAM_IMAGE_BINARY, VERSION_1, 0); SET_PARAM_HEAD(&bl2_ep, PARAM_EP, VERSION_1, 0); |