From 76d475117dfa86d54cea393f00779301b318ff88 Mon Sep 17 00:00:00 2001 From: Hess Chen Date: Fri, 19 Sep 2014 02:04:08 +0000 Subject: BaseTools/Upt: Fix several bugs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. Fix a bug of packaging a full path file in zip at Linux. 2. Fix a format error of generating Hob/Event/BootMode information. 3. Fix a bug of generating additional “GUID” subtype for “UNDEFINED” guid. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hess Chen Reviewed-by: Yingke Liu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16149 6f19259b-4bc3-4df7-8a09-765794883524 --- BaseTools/Source/Python/UPT/GenMetaFile/GenInfFile.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'BaseTools/Source/Python/UPT/GenMetaFile/GenInfFile.py') diff --git a/BaseTools/Source/Python/UPT/GenMetaFile/GenInfFile.py b/BaseTools/Source/Python/UPT/GenMetaFile/GenInfFile.py index 2a11204f7d..6980892874 100644 --- a/BaseTools/Source/Python/UPT/GenMetaFile/GenInfFile.py +++ b/BaseTools/Source/Python/UPT/GenMetaFile/GenInfFile.py @@ -705,7 +705,7 @@ def GenGuidSections(GuidObjList): else: Comment = '' if Usage != DT.ITEM_UNDEFINED and GuidType == DT.ITEM_UNDEFINED: - Comment = '## ' + Usage + ' ## GUID ' + Comment + Comment = '## ' + Usage + Comment elif GuidType == 'Variable': Comment = '## ' + Usage + ' ## ' + GuidType + ':' + VariableName + Comment else: @@ -1027,10 +1027,10 @@ def GenSpecialSections(ObjectList, SectionName): Content = '# ' + ('\n' + '# ').join(GetSplitValueList(SectionContent, '\n')) Content = Content.lstrip() # - # add two empty line after the generated section content to differentiate it between other possible sections + # add a return to differentiate it between other possible sections # if Content: - Content += '\n#\n#\n' + Content += '\n' return Content ## GenBuildOptions # -- cgit v1.2.3