blob: aabe571ac69c5ca97e1d6ee649debd51a0ad9830 [file] [log] [blame]
Leonardo Sandoval9dfdd1b2020-08-06 17:08:11 -05001#!/usr/bin/env bash
Fathi Boudra422bf772019-12-02 11:10:16 +02002#
Leonardo Sandoval579c7372020-10-23 15:23:32 -05003# Copyright (c) 2019-2020 Arm Limited. All rights reserved.
Fathi Boudra422bf772019-12-02 11:10:16 +02004#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8fetch_tf_resource() {
Alexei Fedorov9e4473d2020-11-04 10:13:07 +00009 # Fetch the pre-built SCP/MCP binaries if they haven't been built
Fathi Boudra422bf772019-12-02 11:10:16 +020010 if [ ! -f "$archive/mcp_rom.bin" ]; then
Alexei Fedorov9e4473d2020-11-04 10:13:07 +000011 url="$scp_mcp_prebuilts/mcp_rom.bin" fetch_file
Fathi Boudra422bf772019-12-02 11:10:16 +020012 archive_file "mcp_rom.bin"
13 fi
14 if [ ! -f "$archive/scp_ram.bin" ]; then
Alexei Fedorov9e4473d2020-11-04 10:13:07 +000015 url="$scp_mcp_prebuilts/scp_ram.bin" fetch_file
Fathi Boudra422bf772019-12-02 11:10:16 +020016 archive_file "scp_ram.bin"
17 fi
18 if [ ! -f "$archive/scp_rom.bin" ]; then
Alexei Fedorov9e4473d2020-11-04 10:13:07 +000019 url="$scp_mcp_prebuilts/scp_rom.bin" fetch_file
Fathi Boudra422bf772019-12-02 11:10:16 +020020 archive_file "scp_rom.bin"
21 fi
22
23 # Hold terminal_uart_aon
24 uart="2" file="hold_uart.exp" track_expect
25}
26
27post_fetch_tf_resource() {
28 model="css-rdn1edge" gen_model_params
29 set_run_env "ports_script" "$ci_root/model/css-sgi575-ports.awk"
30 set_run_env "num_uarts" "3"
31}