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 | # |
Leonardo Sandoval | 579c737 | 2020-10-23 15:23:32 -0500 | [diff] [blame] | 3 | # Copyright (c) 2019-2020 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 | pre_tftf_build() { |
| 9 | # Build TFTF and FWU images for this config |
| 10 | targets="tftf ns_bl1u ns_bl2u" set_tftf_build_targets |
| 11 | } |
| 12 | |
| 13 | # Perform FWU steps after all build products have been archived. |
| 14 | post_tf_build() { |
Harrison Mutai | 77c1fc7 | 2023-03-27 13:22:41 +0100 | [diff] [blame] | 15 | url="$scp_bl2_url" filename="scp_bl2.bin" fetch_and_archive |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 16 | fip_targets="fip fwu_fip" build_fip \ |
| 17 | BL33="$archive/tftf.bin" \ |
| 18 | SCP_BL2="$archive/scp_bl2.bin" \ |
| 19 | SCP_BL2U="$archive/scp_bl2.bin" \ |
| 20 | NS_BL2U="$archive/ns_bl2u.bin" |
| 21 | } |
| 22 | |
| 23 | post_tf_archive() { |
| 24 | echo "Backing up FIP..." |
| 25 | cp "$archive/fip.bin" "$archive/bkp_fip.bin" |
| 26 | |
| 27 | image_txt="$ci_root/res/juno_fwu_images.txt" \ |
| 28 | gen_recovery_image \ |
| 29 | "$archive/bl1.bin" \ |
| 30 | "$archive/fip.bin" \ |
| 31 | "$archive/bkp_fip.bin" \ |
| 32 | "$archive/fwu_fip.bin" \ |
| 33 | "$archive/ns_bl1u.bin" |
| 34 | } |
Zelalem | e9e8148 | 2020-07-10 15:18:46 -0500 | [diff] [blame] | 35 | |
| 36 | post_fetch_tf_resource() { |
| 37 | payload_type="tftf" gen_juno_yaml |
| 38 | } |