## @ PatchFv.py\r
#\r
-# Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2014 - 2018, Intel Corporation. All rights reserved.<BR>\r
# This program and the accompanying materials are licensed and made available under\r
# the terms and conditions of the BSD License that accompanies this distribution.\r
# The full text of the license may be found at\r
fvInfo['Offset'] = self.getFvOffsetInFd(fvFile)\r
fvInfo['Size'] = readDataFromFile (fvFile, 0x20, 4)\r
fdIn = open(infFile, "r")\r
- rptLines = fdIn.readlines() \r
- fdIn.close() \r
+ rptLines = fdIn.readlines()\r
+ fdIn.close()\r
fvInfo['Base'] = 0\r
for rptLine in rptLines:\r
match = re.match("^EFI_BASE_ADDRESS\s*=\s*(0x[a-fA-F0-9]+)", rptLine)\r
#\r
def parseInfFile(self, infFile):\r
#\r
- # Get FV offset and search EFI_BASE_ADDRESS in the FD file \r
+ # Get FV offset and search EFI_BASE_ADDRESS in the FD file\r
# then assign the value of EFI_BASE_ADDRESS to fdBase\r
#\r
fvOffset = self.getFvOffsetInFd(infFile[0:-4] + ".Fv")\r