gpt: enhance gen_gpt_bin function to accept max. FIP image size
Updated GPT image creation function to now accept the size
of the FIP image as an input parameter.
Furthermore, streamlined and enhanced the GPT creation function
to offer more detailed information about the process of GPT image
creation.
This update proves beneficial for creating a partition for the FIP,
allowing us the flexibility to choose the desired size rather
than adhering to a fixed size.
Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com>
Change-Id: I1e27bf48c1bae0dfdc8d012d85c613852fd30cd4
diff --git a/run_config/fvp-tftf.backup_gpt b/run_config/fvp-tftf.backup_gpt
index a920668..780697d 100644
--- a/run_config/fvp-tftf.backup_gpt
+++ b/run_config/fvp-tftf.backup_gpt
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
#
-# Copyright (c) 2023, Arm Limited. All rights reserved.
+# Copyright (c) 2023-2024, Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
@@ -10,7 +10,8 @@
}
post_tf_archive() {
- gen_gpt_bin "$archive/fip.bin"
+ # Maximum FIP size is 2MiB = 2097152
+ gen_gpt_bin "$archive/fip.bin" 2097152
# Corrupt primary GPT header to force TF-A to use the backup one
corrupt_gpt_bin "$archive/fip_gpt.bin"