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 | # |
| 3 | # Copyright (c) 2019, Arm Limited. All rights reserved. |
| 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() { |
| 21 | uart0_log=$(echo uart-0-`date "+%H:%M:%S"`.log) |
| 22 | uart1_log=$(echo uart-1-`date "+%H:%M:%S"`.log) |
| 23 | set_run_env "uart0_file" "$uart0_log" |
| 24 | set_run_env "uart1_file" "$uart1_log" |
| 25 | |
| 26 | model="base-aemv8a" retain_flash="1" secure_memory="0" \ |
| 27 | cluster_0_num_cores="1" cluster_1_num_cores="1" \ |
| 28 | cache_state_modelled="0" \ |
| 29 | uart0_out="$uart0_log" \ |
| 30 | uart1_out="$uart1_log" \ |
| 31 | flashloader0_fwrite="flash0" \ |
| 32 | flashloader1_fwrite="flash1" \ |
| 33 | gen_model_params |
| 34 | } |