blob: 086d60c2913e5ab0358abe58f783281467365315 [file] [log] [blame]
johpow01936638d2021-11-08 18:22:24 -06001#!/usr/bin/env bash
2#
Chris Kay4e8aaf12022-09-01 15:21:55 +01003# Copyright (c) 2021-2022, Arm Limited. All rights reserved.
johpow01936638d2021-11-08 18:22:24 -06004#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8post_tf_build() {
9 # Download and archive FVP-R files
10 url="$tfa_downloads/fvp_r/core-image-minimal-fvp-baser-aemv8r64.wic" saveas="rootfs.bin" fetch_file
11 url="$tfa_downloads/fvp_r/fvp-baser-aemv8r64.dtb" saveas="dtb.bin" fetch_file
12 url="$tfa_downloads/fvp_r/Image" saveas="kernel.bin" fetch_file
13 url="$tfa_downloads/fvp_r/u-boot.bin" saveas="uboot.bin" fetch_file
14
15 archive_file "rootfs.bin"
16 archive_file "dtb.bin"
17 archive_file "kernel.bin"
18 archive_file "uboot.bin"
19
20 # Build FIP image with Uboot as BL33
21 build_fip BL33="$archive/uboot.bin"
22}
23
Chris Kay4e8aaf12022-09-01 15:21:55 +010024generate_lava_job_template() {
johpow01936638d2021-11-08 18:22:24 -060025 payload_type="linux" gen_fvp_yaml_template
26}
27
Chris Kay4e8aaf12022-09-01 15:21:55 +010028generate_lava_job() {
29 local model="baser-aemv8r"
johpow01936638d2021-11-08 18:22:24 -060030
Chris Kay4e8aaf12022-09-01 15:21:55 +010031 uart="0" file="fvp-r-yocto.exp" track_expect
32
johpow01936638d2021-11-08 18:22:24 -060033 model="$model" \
Chris Kay4e8aaf12022-09-01 15:21:55 +010034 dtb_addr="0x03000000" \
35 fip_addr="0x40000000" \
36 kernel_addr="0x00800000" \
37 gen_model_params
johpow01936638d2021-11-08 18:22:24 -060038
johpow01936638d2021-11-08 18:22:24 -060039 model="$model" gen_fvp_yaml
40}