blob: 38ea52c0b1d14d8e7be287b3a3b3e4eafb8974b9 [file] [log] [blame]
Sandrine Bailleux1b77c812020-08-07 11:30:15 +02001#!/usr/bin/env bash
Vijayenthiran Subramaniam5ee81532020-07-20 13:04:32 +05302#
3# Copyright (c) 2020, Arm Limited. All rights reserved.
4#
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
Vijayenthiran Subramaniam5ee81532020-07-20 13:04:32 +053010 if [ ! -f "$archive/mcp_rom.bin" ]; then
Maksims Svecovs839f4902021-10-21 14:22:56 +010011 url="$scp_mcp_prebuilts/mcp_romfw.bin" saveas="mcp_rom.bin" fetch_file
Vijayenthiran Subramaniam5ee81532020-07-20 13:04:32 +053012 archive_file "mcp_rom.bin"
13 fi
14 if [ ! -f "$archive/scp_ram.bin" ]; then
Maksims Svecovs839f4902021-10-21 14:22:56 +010015 url="$scp_mcp_prebuilts/scp_bl2.bin" saveas="scp_ram.bin" fetch_file
Vijayenthiran Subramaniam5ee81532020-07-20 13:04:32 +053016 archive_file "scp_ram.bin"
17 fi
18 if [ ! -f "$archive/scp_rom.bin" ]; then
Maksims Svecovs839f4902021-10-21 14:22:56 +010019 url="$scp_mcp_prebuilts/scp_bl1.bin" saveas="scp_rom.bin" fetch_file
Vijayenthiran Subramaniam5ee81532020-07-20 13:04:32 +053020 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() {
Leonardo Sandoval00ced1f2020-12-07 12:55:08 -060028 local model="css-rdv1"
29
30 model="$model" gen_model_params
Vijayenthiran Subramaniam5ee81532020-07-20 13:04:32 +053031 set_run_env "ports_script" "$ci_root/model/css-sgi575-ports.awk"
32 set_run_env "num_uarts" "3"
33 uart="0" set_expect_variable "num_cpus" "16"
Leonardo Sandoval00ced1f2020-12-07 12:55:08 -060034 model="$model" gen_fvp_yaml
Vijayenthiran Subramaniam5ee81532020-07-20 13:04:32 +053035}