blob: 449c5e591e5fdceb5d5e6bdc58adadcf84e7f3ff [file] [log] [blame]
Madhukar Pappireddy9062ebf2021-03-02 17:07:06 -06001#!/usr/bin/env bash
2#
Salman Nabidb6d9682025-02-25 12:45:13 +00003# Copyright (c) 2021-2025, Arm Limited. All rights reserved.
Madhukar Pappireddy9062ebf2021-03-02 17:07:06 -06004#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8fetch_tf_resource() {
Harrison Mutai6f4fd6c2023-03-27 13:22:41 +01009 image="kernel" type="fvp-busybox-uboot" get_boot_image
Chris Kay4e8aaf12022-09-01 15:21:55 +010010}
11
Salman Nabidb6d9682025-02-25 12:45:13 +000012pre_tf_build() {
13 image="initrd" type="default" get_boot_image
14
15 # Remove u-boot header from the initrd and archive
16 dd if=$workspace/initrd.bin of=$workspace/nu.bin bs=64 skip=1 status="none"
17 mv $workspace/nu.bin $workspace/initrd.bin
18 archive_file "$workspace/initrd.bin"
19}
20
Chris Kay4e8aaf12022-09-01 15:21:55 +010021generate_lava_job_template() {
Madhukar Pappireddy9062ebf2021-03-02 17:07:06 -060022 uart="0" file="linux-bl33.exp" track_expect
23
Harrison Mutaia6d6e682023-03-27 13:20:33 +010024 payload_type="linux" gen_yaml_template
Madhukar Pappireddy9062ebf2021-03-02 17:07:06 -060025}