BaseTools: Clean up source files
1. Do not use tab characters 2. No trailing white space in one line 3. All files must end with CRLF Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
from antlr3 import *
|
||||
from antlr3.compat import set, frozenset
|
||||
|
||||
|
||||
## @file
|
||||
# The file defines the Lexer for C source files.
|
||||
#
|
||||
@@ -10,7 +10,7 @@ from antlr3.compat import set, frozenset
|
||||
# This file is generated by running:
|
||||
# java org.antlr.Tool C.g
|
||||
#
|
||||
# Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
#
|
||||
# This program and the accompanying materials are licensed and made available
|
||||
# under the terms and conditions of the BSD License which accompanies this
|
||||
@@ -4341,7 +4341,7 @@ class CLexer(Lexer):
|
||||
u"\12\uffff"
|
||||
)
|
||||
|
||||
|
||||
|
||||
DFA25_transition = [
|
||||
DFA.unpack(u"\1\2\1\uffff\12\1"),
|
||||
DFA.unpack(u"\1\3\1\uffff\12\1\12\uffff\1\5\1\4\1\5\35\uffff\1\5"
|
||||
@@ -4479,7 +4479,7 @@ class CLexer(Lexer):
|
||||
u"\u0192\uffff"
|
||||
)
|
||||
|
||||
|
||||
|
||||
DFA35_transition = [
|
||||
DFA.unpack(u"\6\73\2\70\1\73\2\70\22\73\1\70\1\50\1\65\1\72\1\63"
|
||||
u"\1\45\1\46\1\64\1\34\1\35\1\40\1\42\1\3\1\43\1\41\1\44\1\66\11"
|
||||
@@ -4943,5 +4943,5 @@ class CLexer(Lexer):
|
||||
# class definition for DFA #35
|
||||
|
||||
DFA35 = DFA
|
||||
|
||||
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@@ -1491,7 +1491,7 @@ class MultipleFv(FirmwareVolume):
|
||||
Fv.frombuffer(Buf, 0, len(Buf))
|
||||
|
||||
self.BasicInfo.append([Fv.Name, Fv.FileSystemGuid, Fv.Size])
|
||||
self.FfsDict.append(Fv.FfsDict)
|
||||
self.FfsDict.append(Fv.FfsDict)
|
||||
|
||||
## Class Eot
|
||||
#
|
||||
@@ -1510,7 +1510,7 @@ class Eot(object):
|
||||
# Version and Copyright
|
||||
self.VersionNumber = ("0.02" + " " + gBUILD_VERSION)
|
||||
self.Version = "%prog Version " + self.VersionNumber
|
||||
self.Copyright = "Copyright (c) 2008 - 2010, Intel Corporation All rights reserved."
|
||||
self.Copyright = "Copyright (c) 2008 - 2018, Intel Corporation All rights reserved."
|
||||
self.Report = Report
|
||||
|
||||
self.IsInit = IsInit
|
||||
@@ -1522,7 +1522,7 @@ class Eot(object):
|
||||
self.FvFileList = FvFileList
|
||||
self.MapFileList = MapFileList
|
||||
self.Dispatch = Dispatch
|
||||
|
||||
|
||||
# Check workspace environment
|
||||
if "EFI_SOURCE" not in os.environ:
|
||||
if "EDK_SOURCE" not in os.environ:
|
||||
@@ -1562,13 +1562,13 @@ class Eot(object):
|
||||
if not os.path.isfile(MapFile):
|
||||
EdkLogger.error("Eot", EdkLogger.EOT_ERROR, "Can not find file %s " % MapFile)
|
||||
EotGlobalData.gMAP_FILE.append(MapFile)
|
||||
|
||||
|
||||
# Generate source file list
|
||||
self.GenerateSourceFileList(self.SourceFileList, self.IncludeDirList)
|
||||
|
||||
# Generate guid list of dec file list
|
||||
self.ParseDecFile(self.DecFileList)
|
||||
|
||||
|
||||
# Generate guid list from GUID list file
|
||||
self.ParseGuidList(self.GuidList)
|
||||
|
||||
@@ -1628,7 +1628,7 @@ class Eot(object):
|
||||
if len(list) == 2:
|
||||
EotGlobalData.gGuidDict[list[0].strip()] = GuidStructureStringToGuidString(list[1].strip())
|
||||
|
||||
|
||||
|
||||
## ParseGuidList() method
|
||||
#
|
||||
# Parse Guid list and get all GUID names with GUID values as {GuidName : GuidValue}
|
||||
@@ -1643,7 +1643,7 @@ class Eot(object):
|
||||
for Line in open(Path):
|
||||
(GuidName, GuidValue) = Line.split()
|
||||
EotGlobalData.gGuidDict[GuidName] = GuidValue
|
||||
|
||||
|
||||
## ConvertLogFile() method
|
||||
#
|
||||
# Parse a real running log file to get real dispatch order
|
||||
@@ -1999,7 +1999,7 @@ class Eot(object):
|
||||
|
||||
if Options.FvFileList:
|
||||
self.FvFileList = Options.FvFileList
|
||||
|
||||
|
||||
if Options.MapFileList:
|
||||
self.MapFileList = Options.FvMapFileList
|
||||
|
||||
@@ -2011,7 +2011,7 @@ class Eot(object):
|
||||
|
||||
if Options.DecFileList:
|
||||
self.DecFileList = Options.DecFileList
|
||||
|
||||
|
||||
if Options.GuidList:
|
||||
self.GuidList = Options.GuidList
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
## @file
|
||||
# Warning information of Eot
|
||||
#
|
||||
# Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
#
|
||||
# This program and the accompanying materials
|
||||
# are licensed and made available under the terms and conditions of the BSD License
|
||||
@@ -23,4 +23,4 @@ class Warning (Exception):
|
||||
self.message = Str
|
||||
self.FileName = File
|
||||
self.LineNumber = Line
|
||||
self.ToolName = 'EOT'
|
||||
self.ToolName = 'EOT'
|
||||
|
@@ -1,7 +1,7 @@
|
||||
## @file
|
||||
# This file is used to create report for Eot tool
|
||||
#
|
||||
# Copyright (c) 2008 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
# This program and the accompanying materials
|
||||
# are licensed and made available under the terms and conditions of the BSD License
|
||||
# which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -276,13 +276,13 @@ class Report(object):
|
||||
</tr>
|
||||
<tr id='Ffs%s' style='display:none;'>
|
||||
<td colspan="4"><table width="100%%" border="1">""" % (self.FfsIndex, self.FfsIndex, self.FfsIndex, FfsPath, FfsName, FfsGuid, FfsOffset, FfsType, self.FfsIndex)
|
||||
|
||||
|
||||
if self.DispatchList:
|
||||
if FfsObj.Type in [0x04, 0x06]:
|
||||
self.DispatchList.write("%s %s %s %s\n" % (FfsGuid, "P", FfsName, FfsPath))
|
||||
if FfsObj.Type in [0x05, 0x07, 0x08, 0x0A]:
|
||||
self.DispatchList.write("%s %s %s %s\n" % (FfsGuid, "D", FfsName, FfsPath))
|
||||
|
||||
|
||||
self.WriteLn(Content)
|
||||
|
||||
EotGlobalData.gOP_DISPATCH_ORDER.write('%s\n' %FfsName)
|
||||
|
Reference in New Issue
Block a user