blob: e822b83dcea823e68d7495c7bd82ffb2cfbcfba4 [file] [log] [blame]
Leonardo Sandoval9dfdd1b2020-08-06 17:08:11 -05001#!/usr/bin/env bash
Fathi Boudra422bf772019-12-02 11:10:16 +02002#
Rohit Mathew99ee1572024-02-14 22:16:00 +00003# Copyright (c) 2019-2024, Arm Limited and Contributors. All rights reserved.
Fathi Boudra422bf772019-12-02 11:10:16 +02004#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8fetch_tf_resource() {
Rohit Mathew19780902024-02-14 22:51:59 +00009 image="kernel" type="nrd-busybox" get_boot_image
10 image="initrd" type="nrd-ramdisk" get_boot_image
Fathi Boudra422bf772019-12-02 11:10:16 +020011
Rohit Mathew99ee1572024-02-14 22:16:00 +000012 url="$nrd_prebuilts/grub-busybox.img" saveas="busybox.bin" fetch_file
13 url="$nrd_prebuilts/ramdisk-busybox.img" saveas="ramdisk.bin" fetch_file
Fathi Boudra422bf772019-12-02 11:10:16 +020014
15 archive_file "busybox.bin"
16 archive_file "ramdisk.bin"
Chris Kay4e8aaf12022-09-01 15:21:55 +010017}
18
19generate_lava_job_template() {
Rohit Mathew91e3f972024-02-14 22:35:37 +000020 uart="0" port="5004" file="trusted-firmware-nrd.exp" track_expect
21 uart="1" port="5003" file="linux-busybox-nrd.exp" timeout="1800" \
Chris Kay24d039f2022-11-23 12:53:30 +000022 set_primary="1" track_expect
23
24 set_uart_port "${archive:?}" 2 5000
25 set_uart_port "${archive:?}" 3 5001
Chris Kayf68ffb32022-11-24 10:53:45 +000026 set_uart_port "${archive:?}" 4 5002
Leonardo Sandoval42e60502020-10-21 17:16:41 -050027
Harrison Mutaia6d6e682023-03-27 13:20:33 +010028 payload_type="linux" gen_yaml_template
Fathi Boudra422bf772019-12-02 11:10:16 +020029}