fwu: use partition alignment as an argument to gpt generation script

Implemented support for specifying partition alignment as an
argument in the GPT image generation script. The script now
accepts the alignment value as an optional argument. If the
argument is provided, the script uses the specified alignment;
otherwise, it defaults to a predetermined value.

Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com>
Change-Id: I4e633a2e20db57c881e85259f4061c96b8704f73
diff --git a/fvp_utils.sh b/fvp_utils.sh
index 2e49cd2..7ad5420 100644
--- a/fvp_utils.sh
+++ b/fvp_utils.sh
@@ -481,6 +481,7 @@
     FIP_B_uuid=`uuidgen`
 
     fip_max_size=$2
+    partition_alignment=${3:-1}
     fip_bin_size=$(stat -c %s $fip_bin)
     if [ $fip_max_size -lt $fip_bin_size ]; then
         bberror "fip.bin ($fip_bin_size bytes) is larger than the GPT partition ($fip_max_size bytes)"
@@ -531,7 +532,7 @@
 
     # create the GPT layout
     sgdisk $gpt_image \
-           --set-alignment 1 \
+           --set-alignment $partition_alignment \
            --disk-guid $location_uuid \
            \
            --new 1:$start_sector_1:+$num_sectors_fip \