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 --- bl1/bl1_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bl1/bl1_main.c') diff --git a/bl1/bl1_main.c b/bl1/bl1_main.c index 47ca546d3..c6f2caadf 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); -- cgit v1.2.3