Sandrine Bailleux | 1b77c81 | 2020-08-07 11:30:15 +0200 | [diff] [blame] | 1 | #!/usr/bin/env bash |
Vijayenthiran Subramaniam | 5ee8153 | 2020-07-20 13:04:32 +0530 | [diff] [blame] | 2 | # |
| 3 | # Copyright (c) 2020, Arm Limited. All rights reserved. |
| 4 | # |
| 5 | # SPDX-License-Identifier: BSD-3-Clause |
| 6 | # |
| 7 | |
| 8 | fetch_tf_resource() { |
Alexei Fedorov | 9e4473d | 2020-11-04 10:13:07 +0000 | [diff] [blame] | 9 | # Fetch the pre-built SCP/MCP binaries if they haven't been built |
Nicola Mazzucato | 849c5cf | 2021-11-05 09:48:00 +0000 | [diff] [blame^] | 10 | if [ ! -f "$archive/mcp_ram.bin" ]; then |
| 11 | url="$scp_mcp_prebuilts/mcp_ramfw.bin" saveas="mcp_ram.bin" fetch_file |
| 12 | archive_file "mcp_ram.bin" |
| 13 | fi |
Vijayenthiran Subramaniam | 5ee8153 | 2020-07-20 13:04:32 +0530 | [diff] [blame] | 14 | if [ ! -f "$archive/mcp_rom.bin" ]; then |
Maksims Svecovs | 839f490 | 2021-10-21 14:22:56 +0100 | [diff] [blame] | 15 | url="$scp_mcp_prebuilts/mcp_romfw.bin" saveas="mcp_rom.bin" fetch_file |
Vijayenthiran Subramaniam | 5ee8153 | 2020-07-20 13:04:32 +0530 | [diff] [blame] | 16 | archive_file "mcp_rom.bin" |
| 17 | fi |
| 18 | if [ ! -f "$archive/scp_ram.bin" ]; then |
Maksims Svecovs | 839f490 | 2021-10-21 14:22:56 +0100 | [diff] [blame] | 19 | url="$scp_mcp_prebuilts/scp_bl2.bin" saveas="scp_ram.bin" fetch_file |
Vijayenthiran Subramaniam | 5ee8153 | 2020-07-20 13:04:32 +0530 | [diff] [blame] | 20 | archive_file "scp_ram.bin" |
| 21 | fi |
| 22 | if [ ! -f "$archive/scp_rom.bin" ]; then |
Maksims Svecovs | 839f490 | 2021-10-21 14:22:56 +0100 | [diff] [blame] | 23 | url="$scp_mcp_prebuilts/scp_bl1.bin" saveas="scp_rom.bin" fetch_file |
Vijayenthiran Subramaniam | 5ee8153 | 2020-07-20 13:04:32 +0530 | [diff] [blame] | 24 | archive_file "scp_rom.bin" |
| 25 | fi |
| 26 | |
| 27 | # Hold terminal_uart_aon |
| 28 | uart="2" file="hold_uart.exp" track_expect |
| 29 | } |
| 30 | |
| 31 | post_fetch_tf_resource() { |
Leonardo Sandoval | 00ced1f | 2020-12-07 12:55:08 -0600 | [diff] [blame] | 32 | local model="css-rdv1" |
| 33 | |
| 34 | model="$model" gen_model_params |
Vijayenthiran Subramaniam | 5ee8153 | 2020-07-20 13:04:32 +0530 | [diff] [blame] | 35 | set_run_env "ports_script" "$ci_root/model/css-sgi575-ports.awk" |
| 36 | set_run_env "num_uarts" "3" |
| 37 | uart="0" set_expect_variable "num_cpus" "16" |
Leonardo Sandoval | 00ced1f | 2020-12-07 12:55:08 -0600 | [diff] [blame] | 38 | model="$model" gen_fvp_yaml |
Vijayenthiran Subramaniam | 5ee8153 | 2020-07-20 13:04:32 +0530 | [diff] [blame] | 39 | } |