blob: e13167f7750dbbf6f1b1e7b7838aa496742d6138 [file] [log] [blame]
Leonardo Sandoval9dfdd1b2020-08-06 17:08:11 -05001#!/usr/bin/env bash
Zelaleme9e81482020-07-10 15:18:46 -05002#
3# Copyright (c) 2020, Arm Limited. All rights reserved.
4#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8# This run fragment is used to generate a dummy FIP. The resulting file is not
9# functional and cannot be used in a real run on a platform.
10#
11# This is useful in cases where we want to build a FIP in addition to the
12# individual firmware binaries.
13
14post_tf_build() {
15 # Create non-empty dummy images to include in the FIP.
16 local dummy_file="$(mktempfile)"
17 echo "hello world" > "$dummy_file"
18
19 build_fip BL33="$dummy_file" BL32="$dummy_file" \
20 BL32_EXTRA1="$dummy_file" BL32_EXTRA2="$dummy_file"
21}