| 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 |