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:
@ -1,7 +1,7 @@
|
||||
## @file
|
||||
# process OptionROM generation
|
||||
#
|
||||
# Copyright (c) 2007 - 2017, 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
|
||||
@ -28,7 +28,7 @@ from Common.BuildToolError import *
|
||||
|
||||
T_CHAR_LF = '\n'
|
||||
|
||||
##
|
||||
##
|
||||
#
|
||||
#
|
||||
class OPTIONROM (OptionRomClassObject):
|
||||
@ -57,7 +57,7 @@ class OPTIONROM (OptionRomClassObject):
|
||||
|
||||
# Process Modules in FfsList
|
||||
for FfsFile in self.FfsList :
|
||||
|
||||
|
||||
if isinstance(FfsFile, OptRomInfStatement.OptRomInfStatement):
|
||||
FilePathNameList = FfsFile.GenFfs(IsMakefile=Flag)
|
||||
if len(FilePathNameList) == 0:
|
||||
@ -70,14 +70,14 @@ class OPTIONROM (OptionRomClassObject):
|
||||
if not os.path.exists(TmpOutputDir) :
|
||||
os.makedirs(TmpOutputDir)
|
||||
TmpOutputFile = os.path.join(TmpOutputDir, FileName+'.tmp')
|
||||
|
||||
GenFdsGlobalVariable.GenerateOptionRom(TmpOutputFile,
|
||||
FilePathNameList,
|
||||
[],
|
||||
FfsFile.OverrideAttribs.NeedCompress,
|
||||
FfsFile.OverrideAttribs.PciClassCode,
|
||||
FfsFile.OverrideAttribs.PciRevision,
|
||||
FfsFile.OverrideAttribs.PciDeviceId,
|
||||
|
||||
GenFdsGlobalVariable.GenerateOptionRom(TmpOutputFile,
|
||||
FilePathNameList,
|
||||
[],
|
||||
FfsFile.OverrideAttribs.NeedCompress,
|
||||
FfsFile.OverrideAttribs.PciClassCode,
|
||||
FfsFile.OverrideAttribs.PciRevision,
|
||||
FfsFile.OverrideAttribs.PciDeviceId,
|
||||
FfsFile.OverrideAttribs.PciVendorId,
|
||||
IsMakefile = Flag)
|
||||
BinFileList.append(TmpOutputFile)
|
||||
@ -89,14 +89,14 @@ class OPTIONROM (OptionRomClassObject):
|
||||
if not os.path.exists(TmpOutputDir) :
|
||||
os.makedirs(TmpOutputDir)
|
||||
TmpOutputFile = os.path.join(TmpOutputDir, FileName+'.tmp')
|
||||
|
||||
GenFdsGlobalVariable.GenerateOptionRom(TmpOutputFile,
|
||||
[FilePathName],
|
||||
[],
|
||||
FfsFile.OverrideAttribs.NeedCompress,
|
||||
FfsFile.OverrideAttribs.PciClassCode,
|
||||
FfsFile.OverrideAttribs.PciRevision,
|
||||
FfsFile.OverrideAttribs.PciDeviceId,
|
||||
|
||||
GenFdsGlobalVariable.GenerateOptionRom(TmpOutputFile,
|
||||
[FilePathName],
|
||||
[],
|
||||
FfsFile.OverrideAttribs.NeedCompress,
|
||||
FfsFile.OverrideAttribs.PciClassCode,
|
||||
FfsFile.OverrideAttribs.PciRevision,
|
||||
FfsFile.OverrideAttribs.PciDeviceId,
|
||||
FfsFile.OverrideAttribs.PciVendorId,
|
||||
IsMakefile=Flag)
|
||||
BinFileList.append(TmpOutputFile)
|
||||
@ -105,13 +105,13 @@ class OPTIONROM (OptionRomClassObject):
|
||||
EfiFileList.append(FilePathName)
|
||||
else:
|
||||
BinFileList.append(FilePathName)
|
||||
|
||||
|
||||
#
|
||||
# Call EfiRom tool
|
||||
#
|
||||
OutputFile = os.path.join(GenFdsGlobalVariable.FvDir, self.DriverName)
|
||||
OutputFile = OutputFile + '.rom'
|
||||
|
||||
|
||||
GenFdsGlobalVariable.GenerateOptionRom(
|
||||
OutputFile,
|
||||
EfiFileList,
|
||||
@ -121,17 +121,17 @@ class OPTIONROM (OptionRomClassObject):
|
||||
if not Flag:
|
||||
GenFdsGlobalVariable.InfLogger( "\nGenerate %s Option ROM Successfully" %self.DriverName)
|
||||
GenFdsGlobalVariable.SharpCounter = 0
|
||||
|
||||
|
||||
return OutputFile
|
||||
|
||||
class OverrideAttribs:
|
||||
|
||||
|
||||
## The constructor
|
||||
#
|
||||
# @param self The object pointer
|
||||
#
|
||||
def __init__(self):
|
||||
|
||||
|
||||
self.PciVendorId = None
|
||||
self.PciClassCode = None
|
||||
self.PciDeviceId = None
|
||||
|
Reference in New Issue
Block a user