]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/UPT/Library/Parsing.py
BaseTools/Upt: Fix several bugs
[mirror_edk2.git] / BaseTools / Source / Python / UPT / Library / Parsing.py
index db0fec3a73cc04eab10f3b52d5dddd6577a2c235..ace3e0d11841a0e1cdaeed7d32a364e701147722 100644 (file)
@@ -983,7 +983,7 @@ def GenSection(SectionName, SectionDict, SplitArch=True, NeedBlankLine=False):
                 NewStatement = ""\r
                 for Line in LineList:\r
                     # ignore blank comment\r
-                    if not Line.replace("#", '').strip() and SectionName != 'Defines':\r
+                    if not Line.replace("#", '').strip() and SectionName not in ('Defines', 'Hob', 'Event', 'BootMode'):\r
                         continue\r
                     # add two space before non-comments line except the comments in Defines section\r
                     if Line.strip().startswith('#') and SectionName == 'Defines':\r