From 225810a18249de541840396c74d9a918c691aa9e Mon Sep 17 00:00:00 2001 From: Konstantin Aladyshev Date: Wed, 20 Jul 2022 22:01:17 +0800 Subject: BaseTools: Add support for SUBTYPE_GUID section generation EFI_SECTION_FREEFORM_SUBTYPE_GUID is a leaf section type that contains a single EFI_GUID in the header to describe the raw data. Currently is is not possible to generate such section. This patch adds initial support for the generation of such sections. The added syntax for this type of section corresponds to EDKII "[FV] section" documentation from the FDF Specification: ``` SECTION SUBTYPE_GUID = ``` Signed-off-by: Konstantin Aladyshev Reviewed-by: Bob Feng --- BaseTools/Source/Python/CommonDataClass/FdfClass.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'BaseTools/Source/Python/CommonDataClass/FdfClass.py') diff --git a/BaseTools/Source/Python/CommonDataClass/FdfClass.py b/BaseTools/Source/Python/CommonDataClass/FdfClass.py index 2fbb7b436a..c8cfdaae32 100644 --- a/BaseTools/Source/Python/CommonDataClass/FdfClass.py +++ b/BaseTools/Source/Python/CommonDataClass/FdfClass.py @@ -190,6 +190,18 @@ class GuidSectionClassObject (SectionClassObject) : self.FvParentAddr = None self.IncludeFvSection = False +## SubType GUID section data in FDF +# +# +class SubTypeGuidSectionClassObject (SectionClassObject) : + ## The constructor + # + # @param self The object pointer + # + def __init__(self): + SectionClassObject.__init__(self) + self.SubTypeGuid = None + ## UI section data in FDF # # -- cgit v1.2.3