Hi Tanmay,
As asked in the meeting here is the script I use to build with the important but being only updating the 1st 2M of flash between runs so variable area is preserved.
#! /bin/bash
export WORKSPACE=`pwd`
export PACKAGES_PATH=$WORKSPACE/edk2:$WORKSPACE/edk2-platforms:$WORKSPACE/edk2-non-osi
make -C edk2/BaseTools
. edk2/edksetup.sh
GCC5_AARCH64_PREFIX=aarch64-linux-gnu- build -b DEBUG -a AARCH64 -t GCC5 -p edk2-platforms/Platform/Qemu/SbsaQemu/SbsaQemu.dsc
dd if=./Build/SbsaQemu/DEBUG_GCC5/FV/SBSA_FLASH0.fd of=qemu-run/SBSA_FLASH0.fd conv=notrunc dd if=./Build/SbsaQemu/DEBUG_GCC5/FV/SBSA_FLASH1.fd of=qemu-run/SBSA_FLASH1.fd conv=notrunc bs=2M count=1
Thanks
Graeme