blob: 7d8ca77e62e6211e59f54b9b9e00e31272a402a5 [file] [log] [blame]
Leonardo Sandoval9dfdd1b2020-08-06 17:08:11 -05001#!/usr/bin/env bash
Zelaleme9e81482020-07-10 15:18:46 -05002#
Chris Kay4e8aaf12022-09-01 15:21:55 +01003# Copyright (c) 2019-2022, Arm Limited. All rights reserved.
Zelaleme9e81482020-07-10 15:18:46 -05004#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8post_tf_archive() {
9 echo "Creating flash files which serve as Non-volatile Memory across reboots"
10 rm -f "$archive/flash0"
11 rm -f "$archive/flash1"
12 touch "$archive/flash0"
13 touch "$archive/flash1"
Chris Kay4e8aaf12022-09-01 15:21:55 +010014}
15
16generate_lava_job() {
17 local model="base-aemv8a"
18
19 model="$model" \
20 cache_state_modelled="0" \
21 cluster_0_num_cores="1" \
22 cluster_1_num_cores="1" \
23 flashloader0_fwrite="flash0" \
24 flashloader1_fwrite="flash1" \
25 retain_flash="1" \
26 secure_memory="0" \
27 uart0_out="$uart0_log" \
28 uart1_out="$uart1_log" \
29 gen_model_params
30
31 model="$model" gen_fvp_yaml
32
33 uart0_log=$(echo uart-0-$(date "+%H:%M:%S").log)
34 uart1_log=$(echo uart-1-$(date "+%H:%M:%S").log)
35 set_run_env "uart0_file" "$uart0_log"
36 set_run_env "uart1_file" "$uart1_log"
Zelaleme9e81482020-07-10 15:18:46 -050037
38 set_run_env "run_tftf_reboot_tests" "1"
39 # Contents of Non Volatile Memory are written to this file
40 set_run_env "NVM_file" "flash0"
41}