def parse_pcd_report()

in ArmPlatformPkg/Scripts/Ds5/build_report.py [0:0]


    def parse_pcd_report(self, report_file):
        pcd_reg = re.compile(" (\*P|\*F|\*M|  ) (\w+)(\ +)\: (.*) \((\w+)\) = (.*)\n")

        for line in report_file.xreadlines():
            stripped_line = line.strip()
            if re.match("\<=+\>", stripped_line):
                return
            elif re.match("g.*Guid", stripped_line):
                guid = stripped_line
                self.PCDs[guid] = {}
            else:
                m = pcd_reg.match(line)
                if m:
                    self.PCDs[guid][m.group(2)] = (m.group(6).strip(),m.group(5))