blob: fa05f0ce7c4951dfbc2e74235dc8c5e7f07c22a7 [file] [log] [blame]
#
# Copyright (c) 2020, Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
source [file join [file dirname [info script]] handle-arguments.inc]
expect {
"Booting Secure Partition" {
puts "<<SP entry>>"
}
timeout {
exit_uart -1
}
}
# UART2 captures prints from SP0. If we exit from here, expect script will stop
# capturing the output from telnet process spawned for tracking uart2 console.
# Hence, we need to hold the uart such that the expect script captures the
# outputs to uart log. We do this by configuring timeout to never expire and
# expecting an unexpected string such as "FOOBAR". Refer uart-hold.inc
source [file join [file dirname [info script]] uart-hold.inc]