Hi Jorge,
I added several patches in arm-trusted-boot, you can change the macro NOTICE(...) , you can mux the UART TX pin to GPIO mode for example ...
[Wizard@Oz decoder]$ cat br-extrn/patches/arm-trusted-firmware/one-line-version-build-time.patch
--- a/bl31/bl31_main.c
+++ b/bl31/bl31_main.c
@@ -124,8 +124,8 @@ void bl31_main(void)
/* Init per-world context registers for non-secure world */
manage_extensions_nonsecure_per_world();
- NOTICE("BL31: %s\n", version_string);
- NOTICE("BL31: %s\n", build_message);
+ NOTICE("BL31: %s", version_string);
+ /* NOTICE("BL31: %s\n", build_message); */
#if FEATURE_DETECTION
/* Detect if features enabled during compilation are supported by PE. */
--- a/make_helpers/build_macros.mk
+++ b/make_helpers/build_macros.mk
@@ -436,7 +436,7 @@ endef
# Allow overriding the timestamp, for example for reproducible builds, or to
# synchronize timestamps across multiple projects.
# This must be set to a C string (including quotes where applicable).
-BUILD_MESSAGE_TIMESTAMP ?= __TIME__", "__DATE__
+BUILD_MESSAGE_TIMESTAMP ?= $(shell LC_ALL=C date -u +'(%Y-%m-%d %T)')
.PHONY: libraries
@@ -560,8 +560,8 @@ $(ELF): $(OBJS) $(DEFAULT_LINKER_SCRIPT)
ifdef MAKE_BUILD_STRINGS
$(call MAKE_BUILD_STRINGS,$(BUILD_DIR)/build_message.o)
else
-
@echo 'const char build_message[] = "Built : "$(BUILD_MESSAGE_TIMESTAMP); \
- const char version_string[] = "${VERSION_STRING}"; \
+
@echo 'const char build_message[] = "Built : $(BUILD_MESSAGE_TIMESTAMP)"; \
+ const char version_string[] = "${VERSION_STRING} ${BUILD_MESSAGE_TIMESTAMP}"; \
const char version[] = "${VERSION}";' | \
$$(CC) $$(TF_CFLAGS) $$(CFLAGS) -xc -c - -o $(BUILD_DIR)/build_message.o
endif