summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/CommonDataClass
diff options
context:
space:
mode:
authorKonstantin Aladyshev <aladyshev22@gmail.com>2022-07-20 22:01:17 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2022-10-19 06:32:07 +0000
commit225810a18249de541840396c74d9a918c691aa9e (patch)
tree64f6bb219e81ca325ca0de4280a45bf2d5717e0c /BaseTools/Source/Python/CommonDataClass
parent81aeb9464821b59aa850c681abca3524d5164cc8 (diff)
downloadedk2-225810a18249de541840396c74d9a918c691aa9e.tar.gz
edk2-225810a18249de541840396c74d9a918c691aa9e.tar.bz2
edk2-225810a18249de541840396c74d9a918c691aa9e.zip
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 <GUID> = <File> ``` Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/CommonDataClass')
-rw-r--r--BaseTools/Source/Python/CommonDataClass/FdfClass.py12
1 files changed, 12 insertions, 0 deletions
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
#
#