Leonardo Sandoval | 9dfdd1b | 2020-08-06 17:08:11 -0500 | [diff] [blame] | 1 | #!/usr/bin/env bash |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 2 | # |
Chris Kay | 4e8aaf1 | 2022-09-01 15:21:55 +0100 | [diff] [blame] | 3 | # Copyright (c) 2019-2022, Arm Limited. All rights reserved. |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 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 |
Maksims Svecovs | 71a885a | 2021-10-21 14:29:29 +0100 | [diff] [blame] | 10 | if [ ! -f "$archive/mcp_ram.bin" ]; then |
Jayanth Dodderi Chidanand | 9fe9ce3 | 2022-04-13 14:40:46 +0100 | [diff] [blame] | 11 | url="$scp_mcp_prebuilts/sgi575-mcp-bl2.bin" saveas="mcp_ram.bin" fetch_file |
Maksims Svecovs | 71a885a | 2021-10-21 14:29:29 +0100 | [diff] [blame] | 12 | archive_file "mcp_ram.bin" |
| 13 | fi |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 14 | if [ ! -f "$archive/mcp_rom.bin" ]; then |
Jayanth Dodderi Chidanand | 9fe9ce3 | 2022-04-13 14:40:46 +0100 | [diff] [blame] | 15 | url="$scp_mcp_prebuilts/sgi575-mcp-bl1.bin" saveas="mcp_rom.bin" fetch_file |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 16 | archive_file "mcp_rom.bin" |
| 17 | fi |
| 18 | if [ ! -f "$archive/scp_ram.bin" ]; then |
Jayanth Dodderi Chidanand | 9fe9ce3 | 2022-04-13 14:40:46 +0100 | [diff] [blame] | 19 | url="$scp_mcp_prebuilts/sgi575-bl2.bin" saveas="scp_ram.bin" fetch_file |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 20 | archive_file "scp_ram.bin" |
| 21 | fi |
| 22 | if [ ! -f "$archive/scp_rom.bin" ]; then |
Jayanth Dodderi Chidanand | 9fe9ce3 | 2022-04-13 14:40:46 +0100 | [diff] [blame] | 23 | url="$scp_mcp_prebuilts/sgi575-bl1.bin" saveas="scp_rom.bin" fetch_file |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 24 | archive_file "scp_rom.bin" |
| 25 | fi |
Chris Kay | 4e8aaf1 | 2022-09-01 15:21:55 +0100 | [diff] [blame] | 26 | } |
| 27 | |
| 28 | generate_lava_job() { |
| 29 | local model="css-sgi575" |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 30 | |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 31 | # Hold terminal_uart_aon |
| 32 | uart="2" file="hold_uart.exp" track_expect |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 33 | |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 34 | set_run_env "ports_script" "$ci_root/model/css-sgi575-ports.awk" |
| 35 | set_run_env "num_uarts" "3" |
Chris Kay | 4e8aaf1 | 2022-09-01 15:21:55 +0100 | [diff] [blame] | 36 | |
| 37 | model="$model" gen_model_params |
Leonardo Sandoval | 00ced1f | 2020-12-07 12:55:08 -0600 | [diff] [blame] | 38 | model="$model" gen_fvp_yaml |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 39 | } |