Leonardo Sandoval | 9dfdd1b | 2020-08-06 17:08:11 -0500 | [diff] [blame] | 1 | #!/usr/bin/env bash |
Zelalem | e9e8148 | 2020-07-10 15:18:46 -0500 | [diff] [blame] | 2 | # |
Andre Przywara | 139d58d | 2021-12-03 13:39:11 +0000 | [diff] [blame] | 3 | # Copyright (c) 2019-2022 Arm Limited. All rights reserved. |
Zelalem | e9e8148 | 2020-07-10 15:18:46 -0500 | [diff] [blame] | 4 | # |
| 5 | # SPDX-License-Identifier: BSD-3-Clause |
| 6 | # |
| 7 | |
| 8 | post_tf_build() { |
Harrison Mutai | 77c1fc7 | 2023-03-27 13:22:41 +0100 | [diff] [blame] | 9 | url="${scp_bl2_url}" filename="scp_bl2.bin" fetch_and_archive |
Andre Przywara | 139d58d | 2021-12-03 13:39:11 +0000 | [diff] [blame] | 10 | get_ml_uboot_bin |
Harrison Mutai | 77c1fc7 | 2023-03-27 13:22:41 +0100 | [diff] [blame] | 11 | url="${optee_fip_url}" image="tos-fw.bin" output_name="bl32.bin" \ |
| 12 | get_boot_image_from_fip |
| 13 | |
Zelalem | e9e8148 | 2020-07-10 15:18:46 -0500 | [diff] [blame] | 14 | build_fip BL33="$archive/uboot.bin" BL32="$archive/bl32.bin" SCP_BL2="$archive/scp_bl2.bin" |
| 15 | } |
| 16 | |
| 17 | post_fetch_tf_resource() { |
Andre Przywara | 139d58d | 2021-12-03 13:39:11 +0000 | [diff] [blame] | 18 | get_linux_image |
| 19 | gen_recovery_image "$archive/bl1.bin" "$archive/fip.bin" "$archive/Image" "$archive/ramdisk.img" "$archive/blank.img" |
Zelalem | e9e8148 | 2020-07-10 15:18:46 -0500 | [diff] [blame] | 20 | payload_type="linux" gen_juno_yaml |
| 21 | } |