blob: c401de89e3481488736c250c5bff16aca6d1fc13 [file] [log] [blame]
Usama Arifcba711d2021-08-04 15:53:42 +01001#!/usr/bin/env bash
2#
3# Copyright (c) 2021, Arm Limited. All rights reserved.
4#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8fetch_tf_resource() {
9 # Use SCP binary from SCP build if it exists, or fetch pre-built ones.
10 if [ ! -f "$archive/scp_romfw.bin" ]; then
11 url="$scp_prebuilts/scp_romfw.bin" fetch_file
12 archive_file "scp_romfw.bin"
13 fi
14
15 # Hold scp terminal_s0
16 uart="0" file="hold_uart.exp" track_expect
17}
18
19post_fetch_tf_resource() {
20 local model="tc1"
21
22 model="$model" gen_model_params
23 set_run_env "ports_script" "$ci_root/model/tc-ports.awk"
24 set_run_env "num_uarts" "2"
25 uart="1" set_expect_variable "num_cpus" "8"
26 model="$model" gen_fvp_yaml
27}