summaryrefslogtreecommitdiffstats
path: root/IntelFsp2Pkg/Tools
diff options
context:
space:
mode:
authorLiming Gao <liming.gao@intel.com>2018-06-27 21:07:04 +0800
committerLiming Gao <liming.gao@intel.com>2018-06-28 11:19:43 +0800
commite37bb20c7b4e63de1664edae19afc7c1a95853fa (patch)
tree4d96351fccdd7363d766e453b707aac736380fb3 /IntelFsp2Pkg/Tools
parent1c2f052de2064a0f973aa27767516dfbd90b4fbd (diff)
downloadedk2-e37bb20c7b4e63de1664edae19afc7c1a95853fa.tar.gz
edk2-e37bb20c7b4e63de1664edae19afc7c1a95853fa.tar.bz2
edk2-e37bb20c7b4e63de1664edae19afc7c1a95853fa.zip
IntelFsp2Pkg: 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>
Diffstat (limited to 'IntelFsp2Pkg/Tools')
-rw-r--r--IntelFsp2Pkg/Tools/PatchFv.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/IntelFsp2Pkg/Tools/PatchFv.py b/IntelFsp2Pkg/Tools/PatchFv.py
index fc2ee19bcd..b7bcfe6ab4 100644
--- a/IntelFsp2Pkg/Tools/PatchFv.py
+++ b/IntelFsp2Pkg/Tools/PatchFv.py
@@ -1,6 +1,6 @@
## @ PatchFv.py
#
-# Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>
+# Copyright (c) 2014 - 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 that accompanies this distribution.
# The full text of the license may be found at
@@ -136,8 +136,8 @@ class Symbols:
fvInfo['Offset'] = self.getFvOffsetInFd(fvFile)
fvInfo['Size'] = readDataFromFile (fvFile, 0x20, 4)
fdIn = open(infFile, "r")
- rptLines = fdIn.readlines()
- fdIn.close()
+ rptLines = fdIn.readlines()
+ fdIn.close()
fvInfo['Base'] = 0
for rptLine in rptLines:
match = re.match("^EFI_BASE_ADDRESS\s*=\s*(0x[a-fA-F0-9]+)", rptLine)
@@ -289,7 +289,7 @@ class Symbols:
#
def parseInfFile(self, infFile):
#
- # Get FV offset and search EFI_BASE_ADDRESS in the FD file
+ # Get FV offset and search EFI_BASE_ADDRESS in the FD file
# then assign the value of EFI_BASE_ADDRESS to fdBase
#
fvOffset = self.getFvOffsetInFd(infFile[0:-4] + ".Fv")