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 | # |
Yeoreum Yun | 599c456 | 2025-07-23 10:10:56 +0100 | [diff] [blame] | 3 | # Copyright (c) 2019-2025, 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 | post_tf_build() { |
| 9 | # Fetch EDK2 and pre-built partition files |
Yeoreum Yun | 599c456 | 2025-07-23 10:10:56 +0100 | [diff] [blame] | 10 | url="$tfa_downloads/spm/fw-handoff/FVP_AARCH64_EFI.fd" fetch_file |
| 11 | url="$tfa_downloads/spm/fw-handoff/BL32_AP_MM.fd" fetch_file |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 12 | |
| 13 | archive_file "FVP_AARCH64_EFI.fd" |
Yeoreum Yun | 599c456 | 2025-07-23 10:10:56 +0100 | [diff] [blame] | 14 | archive_file "BL32_AP_MM.fd" |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 15 | |
Yeoreum Yun | 599c456 | 2025-07-23 10:10:56 +0100 | [diff] [blame] | 16 | build_fip BL33="$archive/FVP_AARCH64_EFI.fd" BL32="$archive/BL32_AP_MM.fd" |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 17 | } |
| 18 | |
Chris Kay | 4e8aaf1 | 2022-09-01 15:21:55 +0100 | [diff] [blame] | 19 | generate_lava_job_template() { |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 20 | uart="0" file="spm-edk2-uart0.exp" track_expect |
Yeoreum Yun | 599c456 | 2025-07-23 10:10:56 +0100 | [diff] [blame] | 21 | uart="1" file="spm-edk2-uart1.exp" track_expect |
Paul Sokolovsky | 5725326 | 2021-12-14 17:07:26 +0300 | [diff] [blame] | 22 | |
Harrison Mutai | a6d6e68 | 2023-03-27 13:20:33 +0100 | [diff] [blame] | 23 | payload_type="tftf" gen_yaml_template |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 24 | } |