feat(handoff): add measured boot tftf config
Add test configuration to test firmware handoff with the measured boot
enabled. In TFTF receive the transfer list and if there's a present
event log, run some sanity checks to make sure that the log is valid.
Dump the event log for processing by the expect scripts.
Change-Id: Icbcd00ca739d8b47ba66e64745193f2432659334
Signed-off-by: Harrison Mutai <harrison.mutai@arm.com>
diff --git a/expect/trusted-firmware.inc b/expect/trusted-firmware.inc
index d19d7e7..15c2359 100644
--- a/expect/trusted-firmware.inc
+++ b/expect/trusted-firmware.inc
@@ -24,9 +24,15 @@
message "BL2 loading error"
exit_uart -1
}
- }
+ }
- expect_string "BL1: Booting BL31"
+ # Capture the event log from TF-A if we are running with measured boot
+ # enabled.
+ if {[info exists ::env(measured_boot)]} {
+ capture_log tfa_event_log "BL1: Booting BL31"
+ } else {
+ expect_string "BL1: Booting BL31"
+ }
} else {
message "Skipping early boot messages from BL1 and BL2"
}