blob: 206a248cd14bd3fbd3a9ee9cf415f7f54b51b24d [file] [log] [blame]
Madhukar Pappireddy2f284e12021-08-30 16:06:14 -05001#!/usr/bin/env bash
2#
3# Copyright (c) 2019-2021 Arm Limited. All rights reserved.
4#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8fetch_tf_resource() {
9 kernel_type="fvp-tc-kernel" get_kernel
10 initrd_type="fvp-tc-ramdisk" get_initrd
11 uart="1" set_primary="1" file="linux-rd-busybox.exp" track_expect
12
13 payload_type="linux" gen_fvp_yaml_template
14 # Use SCP binary from SCP build if it exists, or fetch pre-built ones.
15 if [ ! -f "$archive/scp_romfw.bin" ]; then
16 # Pick the appropriate binary based on target platform variant
17 url="$scp_prebuilts/tc$plat_variant/scp_romfw.bin" fetch_file
18 archive_file "scp_romfw.bin"
19 fi
20
21 # Hold scp terminal_s0
22 uart="0" file="hold_uart.exp" track_expect
23}