]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools GenFv: Report the correct spare FV image size
authorLiming Gao <liming.gao@intel.com>
Tue, 9 Jun 2020 08:16:48 +0000 (16:16 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 11 Jun 2020 14:36:54 +0000 (14:36 +0000)
commit3ee4f6cb360a877d171f2f9bb76b0d46d2cfa985
treed88d962cf65e392eebd075b064211e1784edf51f
parente1d24410da356731da70b3334f86343e11e207d2
BaseTools GenFv: Report the correct spare FV image size

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2790

If the top FFS is placed in FV image, current FV will show there is no space.
In fact, the pad ffs in FV image can be regarded as the spare space.
This change reports the max pad ffs size as the spare space for use.

Signed-off-by: Liming Gao <liming.gao@intel.com>
Cc: Bob Feng <bob.c.feng@intel.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
BaseTools/Source/C/GenFv/GenFvInternalLib.c