Manish Pandey | 3c43558 | 2020-07-15 12:14:26 +0100 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # |
| 3 | # Copyright (c) 2020, Arm Limited. All rights reserved. |
| 4 | # |
| 5 | # SPDX-License-Identifier: BSD-3-Clause |
| 6 | # |
| 7 | |
| 8 | post_tf_build() { |
| 9 | # |
| 10 | # To build SP packages in TF-A we need to build FIP. |
| 11 | # The resulting FIP has valid SP Packages mentioned in SP_LAYOUT_FILE |
| 12 | # but dummy BL33 and BL32. |
| 13 | # |
| 14 | local dummy_file="$(mktempfile)" |
| 15 | echo "hello world" > "$dummy_file" |
| 16 | |
| 17 | build_fip BL33="$dummy_file" BL32="$dummy_file" |
| 18 | |
| 19 | url="$project_filer/ci-files/spm-07-29-2020/hafnium.bin" fetch_file |
| 20 | url="$project_filer/ci-files/spm-07-29-2020/secure_hafnium.bin" fetch_file |
| 21 | url="$project_filer/ci-files/spm-07-29-2020/initrd.img" fetch_file |
| 22 | url="$project_filer/ci-files/spm-07-29-2020/manifest.dtb" fetch_file |
| 23 | url="${tf_build_root}/${plat}/${mode}/fdts/fvp_spmc_manifest.dtb" fetch_file |
| 24 | url="${tf_build_root}/${plat}/${mode}/cactus-primary.pkg" fetch_file |
| 25 | url="${tf_build_root}/${plat}/${mode}/cactus-secondary.pkg" fetch_file |
| 26 | |
| 27 | archive_file "hafnium.bin" |
| 28 | archive_file "secure_hafnium.bin" |
| 29 | archive_file "initrd.img" |
| 30 | archive_file "manifest.dtb" |
| 31 | archive_file "fvp_spmc_manifest.dtb" |
| 32 | archive_file "cactus-primary.pkg" |
| 33 | archive_file "cactus-secondary.pkg" |
| 34 | } |
| 35 | |
| 36 | post_fetch_tf_resource() { |
| 37 | model="base-aemv8a" \ |
| 38 | arch_version="8.4" \ |
| 39 | reset_to_bl31="1" \ |
| 40 | preload_bl33="1" \ |
| 41 | preload_bl33_bin="hafnium.bin" \ |
| 42 | spmc_manifest="fvp_spmc_manifest.dtb" \ |
| 43 | spm_bin="secure_hafnium.bin" \ |
| 44 | sp1_pkg="cactus-primary.pkg" \ |
| 45 | sp2_pkg="cactus-secondary.pkg" \ |
| 46 | initrd_bin="initrd.img" \ |
| 47 | el3_payload_bin="manifest.dtb" \ |
| 48 | gen_model_params |
| 49 | } |
| 50 | |
| 51 | fetch_tf_resource() { |
| 52 | # Expect scripts |
| 53 | uart="0" file="spm-linux-uart0.exp" track_expect |
| 54 | uart="2" file="spm-uart2.exp" track_expect |
| 55 | } |