Leonardo Sandoval | 9dfdd1b | 2020-08-06 17:08:11 -0500 | [diff] [blame] | 1 | #!/usr/bin/env bash |
Zelalem | e9e8148 | 2020-07-10 15:18:46 -0500 | [diff] [blame] | 2 | # |
Leonardo Sandoval | 579c737 | 2020-10-23 15:23:32 -0500 | [diff] [blame] | 3 | # Copyright (c) 2019-2020 Arm Limited. All rights reserved. |
Zelalem | e9e8148 | 2020-07-10 15:18:46 -0500 | [diff] [blame] | 4 | # |
| 5 | # SPDX-License-Identifier: BSD-3-Clause |
| 6 | # |
| 7 | |
| 8 | post_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" |
| 14 | |
| 15 | set_run_env "run_tftf_reboot_tests" "1" |
| 16 | # Contents of Non Volatile Memory are written to this file |
| 17 | set_run_env "NVM_file" "flash0" |
| 18 | } |
| 19 | |
| 20 | post_fetch_tf_resource() { |
Leonardo Sandoval | 00ced1f | 2020-12-07 12:55:08 -0600 | [diff] [blame] | 21 | local model="base-aemv8a" |
| 22 | |
Zelalem | e9e8148 | 2020-07-10 15:18:46 -0500 | [diff] [blame] | 23 | uart0_log=$(echo uart-0-`date "+%H:%M:%S"`.log) |
| 24 | uart1_log=$(echo uart-1-`date "+%H:%M:%S"`.log) |
| 25 | set_run_env "uart0_file" "$uart0_log" |
| 26 | set_run_env "uart1_file" "$uart1_log" |
| 27 | |
Leonardo Sandoval | 00ced1f | 2020-12-07 12:55:08 -0600 | [diff] [blame] | 28 | model="$model" retain_flash="1" secure_memory="0" \ |
Zelalem | e9e8148 | 2020-07-10 15:18:46 -0500 | [diff] [blame] | 29 | cluster_0_num_cores="1" cluster_1_num_cores="1" \ |
| 30 | cache_state_modelled="0" \ |
| 31 | uart0_out="$uart0_log" \ |
| 32 | uart1_out="$uart1_log" \ |
| 33 | flashloader0_fwrite="flash0" \ |
| 34 | flashloader1_fwrite="flash1" \ |
| 35 | gen_model_params |
Leonardo Sandoval | 1240a0a | 2020-10-27 11:27:11 -0600 | [diff] [blame] | 36 | |
Leonardo Sandoval | 00ced1f | 2020-12-07 12:55:08 -0600 | [diff] [blame] | 37 | model="$model" gen_fvp_yaml |
Zelalem | e9e8148 | 2020-07-10 15:18:46 -0500 | [diff] [blame] | 38 | } |