summaryrefslogtreecommitdiffstats
path: root/UefiPayloadPkg/Library/DxeHobLib
diff options
context:
space:
mode:
authorPhil Noh <Phil.Noh@amd.com>2025-03-06 14:15:35 -0600
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2025-03-22 01:58:40 +0000
commitb279ac9f36e1b386c8c8a761657c6e6d0f1dfa1d (patch)
treef38f8eff311ea8a8e0dcbc18e0d2332ebb705a05 /UefiPayloadPkg/Library/DxeHobLib
parent1c51a268b717640e48c7c804d92b45301383e219 (diff)
downloadedk2-master.tar.gz
edk2-master.tar.bz2
edk2-master.zip
BaseTools/GenFv: Ensure the minimum pad file size for the FV with VTFHEADmaster
In case of the FV with VTF, the left size should be enough to add the minimum pad file size (EFI_FFS_FILE_HEADER, 0x18). It prevents the build error, "GenFv: ERROR 0006: invalid FFS file header checksum" caused by the pad file overwriting some header data in VTF. This includes these updates for CalculateFvSize() function. 1. If NumBlocks is not defined, ensure the minimum pad file size for the left size (if the pad file is required as VTF is not bottom aligned at end of block, insert EFI_FFS_FILE_HEADER to ensure the pad file size) 2. If NumBlocks is defined, report more clear error message (the required fv image size = 0x%x. the set fv image size = 0x%x. Free space left is not enough to add a pad file (0x18)) 3. Remove MaxPadFileSize, which is reported when the taken size is same as the total size. It can not be the actual left size to add an FFS file. It causes confusion when referring to the build log (FV Space Information) Signed-off-by: Phil Noh <Phil.Noh@amd.com>
Diffstat (limited to 'UefiPayloadPkg/Library/DxeHobLib')
0 files changed, 0 insertions, 0 deletions