Re: [PATCH] [edk2-staging] BaseTools/FMMT: Change Fv Header to FileSystemGuid3.

Bob Feng

Reviewed-by: Bob Feng <>

-----Original Message-----
From: <> On Behalf Of Bob Feng
Sent: Saturday, August 14, 2021 4:04 PM
Cc: Chen, Christine <>; Liming Gao <>
Subject: [edk2-devel] [PATCH] [edk2-staging] BaseTools/FMMT: Change Fv Header to FileSystemGuid3.

From: Yuwei Chen <>

From: Yuwei Chen <>

Following PI spec: when there has Ffs with EFI_FFS_FILE_HEADER2, the Parent Fv of the Ffs need set to FileSystemGuid3; when all the Ffs with EFI_FFS_FILE_HEADER, the Parent Fv of the Ffs need set to FileSystemGuid2.
Currently, when changing the Ffs in Fv from EFI_FFS_FILE_HEADER to EFI_FFS_FILE_HEADER2, the Fv FileSystemGuid does not changed consistent with Ffs type.That caused build issue.

As FileSystemGuid3 is compatible with FileSystemGuid2, change all the Fv header to FileSystemGuid3. This patch modify the FMMT Add/ Replace function, when adding/replacing a new Ffs, set the Parent Fv header to FileSystemGuid3 directly, do not double check size.

Signed-off-by: Yuwei Chen <>
Cc: Bob Feng <>
Cc: Liming Gao <>
BaseTools/Source/C/FMMT/FmmtLib.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/BaseTools/Source/C/FMMT/FmmtLib.c b/BaseTools/Source/C/FMMT/FmmtLib.c
index 4f6056edba..e1436112ca 100644
--- a/BaseTools/Source/C/FMMT/FmmtLib.c
+++ b/BaseTools/Source/C/FMMT/FmmtLib.c
@@ -3198,11 +3198,7 @@ LibEncapsulateFfsToFv (
CHAR8* SystemCommandFormatString; CHAR8* SystemCommand;- CHAR8* FfsGuid = "8c8ce578-8a3d-4f1c-9935-896185c32dd3";-- if (IsLargeFile == TRUE) {- FfsGuid = "5473c07a-3dcb-4dca-bd6f-1e9689e7349a";- }+ CHAR8* FfsGuid = "5473c07a-3dcb-4dca-bd6f-1e9689e7349a"; SystemCommandFormatString = NULL; SystemCommand = NULL;--
GitPatchExtractor 1.1

-=-=-=-=-=-= Links: You receive all messages sent to this group.
View/Reply Online (#79306):
Mute This Topic:
Group Owner:
Unsubscribe: [] -=-=-=-=-=-=

Join to automatically receive all group messages.