Leonardo Sandoval | 9dfdd1b | 2020-08-06 17:08:11 -0500 | [diff] [blame] | 1 | #!/usr/bin/env bash |
Zelalem | 1b87461 | 2020-08-04 18:08:18 -0500 | [diff] [blame] | 2 | # |
Rupinderjit Singh | 385f17d | 2022-07-18 20:28:10 +0100 | [diff] [blame] | 3 | # Copyright (c) 2020-2022, Arm Limited. All rights reserved. |
Zelalem | 1b87461 | 2020-08-04 18:08:18 -0500 | [diff] [blame] | 4 | # |
| 5 | # SPDX-License-Identifier: BSD-3-Clause |
| 6 | # |
| 7 | |
| 8 | source "$ci_root/fvp_utils.sh" |
| 9 | |
Maksims Svecovs | 83a7a66 | 2021-10-21 14:45:13 +0100 | [diff] [blame] | 10 | tc_prebuilts="${tc_prebuilts:-$tfa_downloads/total_compute}" |
Zelalem | 1b87461 | 2020-08-04 18:08:18 -0500 | [diff] [blame] | 11 | |
Maksims Svecovs | 83a7a66 | 2021-10-21 14:45:13 +0100 | [diff] [blame] | 12 | # Pre-built SCP binaries |
| 13 | scp_prebuilts="${scp_prebuilts:-$scp_mcp_downloads}" |
Alexei Fedorov | 9e4473d | 2020-11-04 10:13:07 +0000 | [diff] [blame] | 14 | |
Zelalem | 1b87461 | 2020-08-04 18:08:18 -0500 | [diff] [blame] | 15 | fvp_kernels[fvp-tc-kernel]="$tc_prebuilts/Image" |
| 16 | fvp_initrd_urls[fvp-tc-ramdisk]="$tc_prebuilts/uInitrd-busybox.0x88000000" |
| 17 | |
| 18 | initrd_addr=0x8000000 |
| 19 | kernel_addr=0x80000 |
| 20 | scp_ram_addr=0x0bd80000 |
Rupinderjit Singh | 396938a | 2022-07-22 21:19:41 +0100 | [diff] [blame^] | 21 | |
Rupinderjit Singh | 385f17d | 2022-07-18 20:28:10 +0100 | [diff] [blame] | 22 | rss_rom_addr=0x11000000 |
| 23 | rss_flash_addr=0x31000000 |
Rupinderjit Singh | 396938a | 2022-07-22 21:19:41 +0100 | [diff] [blame^] | 24 | vmmaddrwidth=23 |
| 25 | rvbaddr_lw=0x1000 |
| 26 | rvbaddr_up=0x0000 |
| 27 | |
| 28 | if [ $plat_variant -eq 2 ]; then |
| 29 | if [ ! -f "$archive/rss_rom.bin" ]; then |
| 30 | url="$tc_prebuilts/tc$plat_variant/rss_rom.bin" saveas="rss_rom.bin" fetch_file |
| 31 | archive_file "rss_rom.bin" |
| 32 | fi |
| 33 | |
| 34 | if [ ! -f "$archive/rss_flash.bin" ]; then |
| 35 | url="$tc_prebuilts/tc$plat_variant/rss_flash.bin" saveas="rss_flash.bin" fetch_file |
| 36 | archive_file "rss_flash.bin" |
| 37 | fi |
| 38 | fi |
| 39 | |
| 40 | rss_rom_file="$archive/rss_rom.bin" |
| 41 | rss_flash_file="$archive/rss_flash.bin" |
Madhukar Pappireddy | c683cf6 | 2021-11-01 14:38:32 -0500 | [diff] [blame] | 42 | |
| 43 | # Hafnium build repo containing Secure hafnium binaries |
| 44 | spm_secure_out_dir=secure_tc_clang |
| 45 | |
| 46 | # TC platform doesnt have non secure hafnium build configuration. Hence, we |
| 47 | # set it to an arbitrary name. |
| 48 | spm_non_secure_out_dir=not_found |