summaryrefslogtreecommitdiff
path: root/BaseTools/Source/Python/UPT/Library/Parsing.py
diff options
context:
space:
mode:
Diffstat (limited to 'BaseTools/Source/Python/UPT/Library/Parsing.py')
-rw-r--r--BaseTools/Source/Python/UPT/Library/Parsing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/UPT/Library/Parsing.py b/BaseTools/Source/Python/UPT/Library/Parsing.py
index db0fec3a73..ace3e0d118 100644
--- a/BaseTools/Source/Python/UPT/Library/Parsing.py
+++ b/BaseTools/Source/Python/UPT/Library/Parsing.py
@@ -983,7 +983,7 @@ def GenSection(SectionName, SectionDict, SplitArch=True, NeedBlankLine=False):
NewStatement = ""
for Line in LineList:
# ignore blank comment
- if not Line.replace("#", '').strip() and SectionName != 'Defines':
+ if not Line.replace("#", '').strip() and SectionName not in ('Defines', 'Hob', 'Event', 'BootMode'):
continue
# add two space before non-comments line except the comments in Defines section
if Line.strip().startswith('#') and SectionName == 'Defines':