blob: cbb58b0a3e35ca37630db7734528d4ed5598c7e3 [file] [log] [blame]
Leonardo Sandoval9dfdd1b2020-08-06 17:08:11 -05001#!/usr/bin/env bash
Fathi Boudra422bf772019-12-02 11:10:16 +02002#
Zelalemd1897892021-05-06 13:46:43 -05003# Copyright (c) 2019-2021 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
Zelalemd1897892021-05-06 13:46:43 -050011 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
Zelalemd1897892021-05-06 13:46:43 -050015 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
Zelalemd1897892021-05-06 13:46:43 -050019 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 url="$tfa_downloads/SGI-575_cmn600.yml" fetch_file
24 archive_file "SGI-575_cmn600.yml"
25
26 # Hold terminal_uart_aon
27 uart="2" file="hold_uart.exp" track_expect
28}
29
30post_fetch_tf_resource() {
Leonardo Sandoval00ced1f2020-12-07 12:55:08 -060031 local model="css-sgi575"
32
33 model="$model" gen_model_params
Fathi Boudra422bf772019-12-02 11:10:16 +020034 set_run_env "ports_script" "$ci_root/model/css-sgi575-ports.awk"
35 set_run_env "num_uarts" "3"
Leonardo Sandoval00ced1f2020-12-07 12:55:08 -060036 model="$model" gen_fvp_yaml
Fathi Boudra422bf772019-12-02 11:10:16 +020037}