blob: bd20ae4a247ac4294d58c9d89c2c49e10d837b9f [file] [log] [blame]
Manish V Badarkheb87f37b2021-11-10 18:53:05 +00001#!/usr/bin/env bash
2#
Harrison Mutaia6d6e682023-03-27 13:20:33 +01003# Copyright (c) 2021-2023, Arm Limited. All rights reserved.
Manish V Badarkheb87f37b2021-11-10 18:53:05 +00004#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7# It is a copy of fvp-linux.rootfs+ftpm with another expect script
8# to run
9#
10
Chris Kayaf0e3af2022-10-11 15:26:01 +010011post_tf_build() {
Chris Kay4e8aaf12022-09-01 15:21:55 +010012 # Get the images for the test.
13 edk_url="$tfa_downloads/ftpm/FVP_AARCH64_EFI.fd"
14 rootfs_url="$tfa_downloads/ftpm/boot-fat.uefi.img" get_rootfs
15 url="$edk_url" saveas="edk2.bin" fetch_file
16 archive_file "edk2.bin"
17}
Manish V Badarkheb87f37b2021-11-10 18:53:05 +000018
Chris Kay4e8aaf12022-09-01 15:21:55 +010019generate_lava_job_template() {
Chris Kay07756bc2022-11-24 17:21:48 +000020 # These UARTs are swapped because of an Expect script order requirement
21 uart="1" port="5000" timeout="600" file="linux-tpm-384.exp" \
22 set_primary="1" track_expect
23 uart="0" port="5001" timeout="600" file="tpm-logs.exp" track_expect
Manish V Badarkheb87f37b2021-11-10 18:53:05 +000024
Chris Kay4e8aaf12022-09-01 15:21:55 +010025 set_run_env "ports_script" "$ci_root/model/ftpm-ports.awk"
26 set_run_env "num_uarts" "2"
27
Harrison Mutaia6d6e682023-03-27 13:20:33 +010028 payload_type="linux" gen_yaml_template
Manish V Badarkheb87f37b2021-11-10 18:53:05 +000029}