blob: e4defd482bae70846df9523f9d9eb15c87483b71 [file] [log] [blame]
Leonardo Sandoval9dfdd1b2020-08-06 17:08:11 -05001#!/usr/bin/env bash
Fathi Boudra422bf772019-12-02 11:10:16 +02002#
Leonardo Sandoval579c7372020-10-23 15:23:32 -05003# Copyright (c) 2019-2020 Arm Limited. All rights reserved.
Fathi Boudra422bf772019-12-02 11:10:16 +02004#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8post_tf_build() {
9 get_uboot_bin
10}
11
12post_fetch_tf_resource() {
Leonardo Sandoval00ced1f2020-12-07 12:55:08 -060013 local model="base-aemv8a"
14
Leonardo Sandoval19707762021-02-26 11:34:59 -060015 image=${archive}/tmp.bin
Fathi Boudra422bf772019-12-02 11:10:16 +020016 printf '\1\0\0\0' > "$image"
17
18 preload_bl33="1" \
19 preload_bl33_bin="uboot.bin" \
20 reset_to_bl31="1" \
21 cache_state_modelled="0" \
22 memprotect="$image" \
23 memprotect_addr="0xBFC0000" \
Leonardo Sandoval00ced1f2020-12-07 12:55:08 -060024 model="$model" gen_model_params
Leonardo Sandoval1240a0a2020-10-27 11:27:11 -060025
Leonardo Sandoval00ced1f2020-12-07 12:55:08 -060026 model="$model" gen_fvp_yaml
Fathi Boudra422bf772019-12-02 11:10:16 +020027}