blob: d308bf988a7d0b5a5b0c300eb7fdc1ea268e60ba [file] [log] [blame]
Leonardo Sandoval9dfdd1b2020-08-06 17:08:11 -05001#!/usr/bin/env bash
Fathi Boudra422bf772019-12-02 11:10:16 +02002#
Chris Kay4e8aaf12022-09-01 15:21:55 +01003# Copyright (c) 2019-2022, 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
Maksims Svecovs71a885a2021-10-21 14:29:29 +010010 if [ ! -f "$archive/mcp_ram.bin" ]; then
Jayanth Dodderi Chidanand9fe9ce32022-04-13 14:40:46 +010011 url="$scp_mcp_prebuilts/sgi575-mcp-bl2.bin" saveas="mcp_ram.bin" fetch_file
Maksims Svecovs71a885a2021-10-21 14:29:29 +010012 archive_file "mcp_ram.bin"
13 fi
Fathi Boudra422bf772019-12-02 11:10:16 +020014 if [ ! -f "$archive/mcp_rom.bin" ]; then
Jayanth Dodderi Chidanand9fe9ce32022-04-13 14:40:46 +010015 url="$scp_mcp_prebuilts/sgi575-mcp-bl1.bin" saveas="mcp_rom.bin" fetch_file
Fathi Boudra422bf772019-12-02 11:10:16 +020016 archive_file "mcp_rom.bin"
17 fi
18 if [ ! -f "$archive/scp_ram.bin" ]; then
Jayanth Dodderi Chidanand9fe9ce32022-04-13 14:40:46 +010019 url="$scp_mcp_prebuilts/sgi575-bl2.bin" saveas="scp_ram.bin" fetch_file
Fathi Boudra422bf772019-12-02 11:10:16 +020020 archive_file "scp_ram.bin"
21 fi
22 if [ ! -f "$archive/scp_rom.bin" ]; then
Jayanth Dodderi Chidanand9fe9ce32022-04-13 14:40:46 +010023 url="$scp_mcp_prebuilts/sgi575-bl1.bin" saveas="scp_rom.bin" fetch_file
Fathi Boudra422bf772019-12-02 11:10:16 +020024 archive_file "scp_rom.bin"
25 fi
Chris Kay4e8aaf12022-09-01 15:21:55 +010026}
27
28generate_lava_job() {
29 local model="css-sgi575"
Fathi Boudra422bf772019-12-02 11:10:16 +020030
Fathi Boudra422bf772019-12-02 11:10:16 +020031 # Hold terminal_uart_aon
32 uart="2" file="hold_uart.exp" track_expect
Fathi Boudra422bf772019-12-02 11:10:16 +020033
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"
Chris Kay4e8aaf12022-09-01 15:21:55 +010036
37 model="$model" gen_model_params
Leonardo Sandoval00ced1f2020-12-07 12:55:08 -060038 model="$model" gen_fvp_yaml
Fathi Boudra422bf772019-12-02 11:10:16 +020039}