Revision: 19139 http://sourceforge.net/p/edk2/code/19139 Author: yzhu52 Date: 2015-12-07 09:03:35 +0000 (Mon, 07 Dec 2015) Log Message: ----------- BaseTools: Fix a bug in the VPD report generation
Changed the if condition to check whether current Region is FD VPD region to fix a bug in the VPD report generation. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yonghong Zhu <yonghong....@intel.com> Reviewed-by: Liming Gao <liming....@intel.com> Modified Paths: -------------- trunk/edk2/BaseTools/Source/Python/build/BuildReport.py Modified: trunk/edk2/BaseTools/Source/Python/build/BuildReport.py =================================================================== --- trunk/edk2/BaseTools/Source/Python/build/BuildReport.py 2015-12-07 09:01:44 UTC (rev 19138) +++ trunk/edk2/BaseTools/Source/Python/build/BuildReport.py 2015-12-07 09:03:35 UTC (rev 19139) @@ -1389,11 +1389,11 @@ self.FdRegionList = [FdRegionReport(FdRegion, Wa) for FdRegion in Fd.RegionList] self.FvPath = os.path.join(Wa.BuildDir, "FV") self.VpdFilePath = os.path.join(self.FvPath, "%s.map" % Wa.Platform.VpdToolGuid) - VpdPcdToken = 'gEfiMdeModulePkgTokenSpaceGuid' - VpdPcdName = 'PcdVpdBaseAddress' + self.VPDBaseAddress = 0 + self.VPDSize = 0 self.VPDInfoList = [] for index, FdRegion in enumerate(Fd.RegionList): - if (VpdPcdName, VpdPcdToken) == FdRegion.PcdOffset: + if str(FdRegion.RegionType) is 'FILE' and Wa.Platform.VpdToolGuid in str(FdRegion.RegionDataList): self.VPDBaseAddress = self.FdRegionList[index].BaseAddress self.VPDSize = self.FdRegionList[index].Size break ------------------------------------------------------------------------------ Go from Idea to Many App Stores Faster with Intel(R) XDK Give your users amazing mobile app experiences with Intel(R) XDK. Use one codebase in this all-in-one HTML5 development environment. Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs. http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140 _______________________________________________ edk2-commits mailing list edk2-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-commits