MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / __init__

Method __init__

BaseTools/Source/Python/BPDG/GenVpd.py:295–311  ·  view source on GitHub ↗
(self, InputFileName, MapFileName, VpdFileName)

Source from the content-addressed store, hash-verified

293 # @param VpdFileName The filename of Vpd file that hold vpd pcd information.
294 #
295 def __init__(self, InputFileName, MapFileName, VpdFileName):
296 self.InputFileName = InputFileName
297 self.MapFileName = MapFileName
298 self.VpdFileName = VpdFileName
299 self.FileLinesList = []
300 self.PcdFixedOffsetSizeList = []
301 self.PcdUnknownOffsetList = []
302 try:
303 fInputfile = open(InputFileName, "r")
304 try:
305 self.FileLinesList = fInputfile.readlines()
306 except:
307 EdkLogger.error("BPDG", BuildToolError.FILE_READ_FAILURE, "File read failed for %s" % InputFileName, None)
308 finally:
309 fInputfile.close()
310 except:
311 EdkLogger.error("BPDG", BuildToolError.FILE_OPEN_FAILURE, "File open failed for %s" % InputFileName, None)
312
313 ##
314 # Parser the input file which is generated by the build tool. Convert the value of each pcd's

Callers

nothing calls this directly

Calls 2

errorMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected